testsuite: stdlib/isomac.c: add missing include
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 8 Jan 2019 20:10:28 +0000 (21:10 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 3 Feb 2019 14:17:18 +0000 (15:17 +0100)
When running the testsuite, building stdlib/isomac.c outputs the
following warning:

  gcc -O   -D_GNU_SOURCE -DIS_IN_build -include /home/aurel32/glibc-build/config.h isomac.c -o /home/aurel32/glibc-build/stdlib/isomac
  isomac.c: In function ‘get_null_defines’:
  isomac.c:260:3: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
     close (fd);
     ^~~~~
     pclose

Fix that by adding the <unistd.h> include.

Changelog:
* stdlib/isomac.c: Include <unistd.h>.

ChangeLog
stdlib/isomac.c

index 628aaef..8260429 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
+
+       * stdlib/isomac.c: Include <unistd.h>.
+
 2019-02-03  Florian Weimer  <fweimer@redhat.com>
 
        * include/time.h (__tzfile_default): Use int, not long int, for
index 37f564c..7d743cb 100644 (file)
@@ -74,6 +74,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #define HEADER_MAX          256