public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/release/2.28/master] testsuite: stdlib/isomac.c: add missing include
@ 2024-05-10  2:55 Sunil Pandey
  0 siblings, 0 replies; only message in thread
From: Sunil Pandey @ 2024-05-10  2:55 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c0a523f13b0868d03046a7e479fe5fb7039bd397

commit c0a523f13b0868d03046a7e479fe5fb7039bd397
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Tue Jan 8 21:10:28 2019 +0100

    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 11f382ee780649549428cb25af3a9f1d3465868d)

Diff:
---
 ChangeLog       | 4 ++++
 stdlib/isomac.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index f9157d179b..95b7e2a59e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/stdlib/isomac.c b/stdlib/isomac.c
index 0873eaa505..439b000734 100644
--- a/stdlib/isomac.c
+++ b/stdlib/isomac.c
@@ -74,6 +74,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #define HEADER_MAX          256

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-10  2:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10  2:55 [glibc/release/2.28/master] testsuite: stdlib/isomac.c: add missing include Sunil Pandey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).