From 4e5f9259f352a9547b7cc35d675eac3050ed5803 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 22 May 2015 17:14:04 +0000 Subject: Restore _POSIX2_C_VERSION definition (bug 438). My review of conformtest expectations for POSIX showed up that the _POSIX2_C_VERSION macro, required by POSIX and XPG standards before 2001, was missing in unistd.h, having been removed on 2003-04-03 despite those standards still being supported. This patch adds it back. As it's in the implementation namespace, there's no need for it to be conditional, and other such macros aren't conditional in this header either. Tested for x86_64 and x86 (testsuite). Note that this *does* change the installed libraries, because it affects the sysconf support (present all along) for _SC_2_C_VERSION. [BZ #438] * posix/unistd.h (_POSIX2_C_VERSION): New macro. * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove variable. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 6a44067db4..131e161d44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2015-05-22 Joseph Myers + [BZ #438] + * posix/unistd.h (_POSIX2_C_VERSION): New macro. + * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove + variable. + [BZ #18444] * string/basename.c (basename): Rename to __basename and define as weak alias of __basename. Use libc_hidden_weak. -- cgit 1.4.1