This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20074] stdlib.h rand_r namespace
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 17 May 2016 15:49:22 +0000
- Subject: [Bug libc/20074] stdlib.h rand_r namespace
- Auto-submitted: auto-generated
- References: <bug-20074-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20074
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via b098852ac2664e7857387c2071439e1473e6e899 (commit)
from 4242d9683fef6e618b80ec939adc37ff25cd2d79 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b098852ac2664e7857387c2071439e1473e6e899
commit b098852ac2664e7857387c2071439e1473e6e899
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue May 17 15:48:29 2016 +0000
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.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
conform/Makefile | 1 -
stdlib/stdlib.h | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.