Skip to content

Commit

Permalink
conformtest: use proper _POSIX_C_SOURCE value for POSIX.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Joseph Myers committed May 20, 2015
1 parent 38d3d5b commit f585737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2015-05-20 Joseph Myers <joseph@codesourcery.com>

* conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
-D_POSIX_C_SOURCE=199506L.

* conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.

* conform/data/unistd.h-data (_POSIX_VERSION): Require.
Expand Down
2 changes: 1 addition & 1 deletion conform/GlibcConform.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f585737

Please sign in to comment.