conformtest: Use correct feature test macros for XPG4.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 1 May 2012 19:58:35 +0000 (19:58 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 1 May 2012 19:58:35 +0000 (19:58 +0000)
ChangeLog
conform/conformtest.pl

index 286f58be4219c97ec9acc2cfd707e1436419ee7d..5edfd3ee57cd9bc1e759dcc739945474ec627750 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
 
+       * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
+       _XOPEN_SOURCE_EXTENDED for XPG4.
+
        * conform/conformtest.pl: Handle "symbol" lines for allow-header.
 
        * Makeconfig (localtime): Remove variable.
index a14aa09eeb3b723b9906cfa4779b8ca30dc1216e..25e05a2998d53761097124d7c86e992ba65be33d 100644 (file)
@@ -37,7 +37,7 @@ $CFLAGS{"ISO99"} = "-std=c99";
 $CFLAGS{"ISO11"} = "-std=c1x -D_ISOC11_SOURCE";
 $CFLAGS{"POSIX"} = "-D_POSIX_C_SOURCE=199912 -ansi";
 $CFLAGS{"XPG3"} = "-D_XOPEN_SOURCE";
-$CFLAGS{"XPG4"} = "-D_XOPEN_SOURCE_EXTENDED";
+$CFLAGS{"XPG4"} = "-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED";
 $CFLAGS{"UNIX98"} = "-D_XOPEN_SOURCE=500";
 $CFLAGS{"XOPEN2K"} = "-D_XOPEN_SOURCE=600";
 $CFLAGS{"XOPEN2K8"} = "-std=c99 -D_XOPEN_SOURCE=700";