From b098852ac2664e7857387c2071439e1473e6e899 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 17 May 2016 15:48:29 +0000 Subject: Fix stdlib.h rand_r namespace (bug 20074). stdlib.h declares rand_r if __USE_POSIX; i.e., POSIX.1:1990. But rand_r was added along with threads, so the condition should be __USE_POSIX199506. This patch corrects the condition. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). [BZ #20074] * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if [__USE_POSIX]. * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove variable. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index ead0766..7d38ded 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2016-05-17 Joseph Myers + [BZ #20074] + * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if + [__USE_POSIX]. + * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove + variable. + [BZ #20051] * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98] (ttyslot): Do not declare. -- cgit v1.1