From 0014680d6a5bdeb4fe17682450105ebed19f35da Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 17 May 2016 15:51:55 +0000 Subject: Do not declare grantpt, ptsname, unlockpt in stdlib.h for XPG3 (bug 20094). stdlib.h declares grantpt, ptsname, unlockpt for __USE_XOPEN. This patch corrects the condition to __USE_XOPEN_EXTENDED (these functions are new in XPG4). Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). [BZ #20094] * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED], not [__USE_XOPEN]. (unlockpt): Likewise. (ptsname): Likewise. * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove variable. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 2be1e21..ce605c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2016-05-17 Joseph Myers + [BZ #20094] + * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED], + not [__USE_XOPEN]. + (unlockpt): Likewise. + (ptsname): Likewise. + * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove + variable. + [BZ #20076] * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED] instead of [__USE_UNIX98]. -- cgit v1.1