From 612fe4327577f9afaf6f45b400a737683eef9d0c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 12 May 2016 16:50:43 +0000 Subject: Declare gethostname for XPG4 (bug 20054). unistd.h declares gethostname for __USE_UNIX98 || __USE_XOPEN2K. But it's also in XPG4 (XNS volume - C438 - not the main definitions of system interfaces and headers in C435). This patch corrects the condition. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). [BZ #20054] * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED], not [__USE_UNIX98]. * conform/data/unistd.h-data (gethostname): Do not expect for [XPG3]. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index b85a2938ea..fe723a609b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2016-05-12 Joseph Myers + [BZ #20054] + * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED], + not [__USE_UNIX98]. + * conform/data/unistd.h-data (gethostname): Do not expect for + [XPG3]. + * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect. [!POSIX] (S_IFBLK): Likewise. [!POSIX] (S_IFCHR): Likewise. -- cgit v1.2.3