From 9ff81856dbbbcedb63de546d10dc1cdaeb982a6b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 17 May 2016 15:50:00 +0000 Subject: Make sys/stat.h define S_IFSOCK, S_ISSOCK for XPG4 (bug 20076). sys/stat.h should define S_IFSOCK and S_ISSOCK for XPG4 (XNS), but does not. This patch corrects the relevant header conditionals. Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). [BZ #20076] * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED] instead of [__USE_UNIX98]. (S_ISSOCK): Likewise. * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove variable. --- ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7d38ded1b7..2be1e21676 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2016-05-17 Joseph Myers + [BZ #20076] + * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED] + instead of [__USE_UNIX98]. + (S_ISSOCK): Likewise. + * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove + variable. + [BZ #20074] * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if [__USE_POSIX]. -- cgit v1.2.3