mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
testsuite: stdlib/isomac.c: add missing include
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>.
(cherry picked from commit 11f382ee78
)
This commit is contained in:
parent
13f1198286
commit
c0a523f13b
@ -1,3 +1,7 @@
|
||||
2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
|
||||
|
||||
* stdlib/isomac.c: Include <unistd.h>.
|
||||
|
||||
2018-11-07 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
Implement TEST_COMPARE_STRING.
|
||||
|
@ -74,6 +74,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define HEADER_MAX 256
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user