From f58573781c3541d6a666036a6a815ea052242065 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 20 May 2015 23:14:53 +0000 Subject: conformtest: use proper _POSIX_C_SOURCE value for POSIX. The conform/ tests were using -D_POSIX_C_SOURCE=199912 to test "POSIX" (1995/6). This patch changes them to use 199506L, the proper value from the relevant edition of POSIX. (This doesn't make any difference to features.h, but is the logically correct value to use.) Tested for x86_64. * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use -D_POSIX_C_SOURCE=199506L. --- conform/GlibcConform.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conform') diff --git a/conform/GlibcConform.pm b/conform/GlibcConform.pm index 2533f579c9..8aeada4821 100644 --- a/conform/GlibcConform.pm +++ b/conform/GlibcConform.pm @@ -28,7 +28,7 @@ require Exporter; $CFLAGS{"ISO"} = "-ansi"; $CFLAGS{"ISO99"} = "-std=c99"; $CFLAGS{"ISO11"} = "-std=c1x -D_ISOC11_SOURCE"; -$CFLAGS{"POSIX"} = "-D_POSIX_C_SOURCE=199912 -ansi"; +$CFLAGS{"POSIX"} = "-D_POSIX_C_SOURCE=199506L -ansi"; $CFLAGS{"XPG3"} = "-ansi -D_XOPEN_SOURCE"; $CFLAGS{"XPG4"} = "-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED"; $CFLAGS{"UNIX98"} = "-ansi -D_XOPEN_SOURCE=500"; -- cgit 1.4.1