]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Solaris _XOPEN_SOURCE updates
authorHarlan Stenn <stenn@ntp.org>
Fri, 11 Apr 2008 22:41:57 +0000 (18:41 -0400)
committerHarlan Stenn <stenn@ntp.org>
Fri, 11 Apr 2008 22:41:57 +0000 (18:41 -0400)
bk: 47ffe935JoaNRxifuiw3RTDCNH7r_w

configure.ac

index afe47444363ed32869892d5ff36892568eff318a..4c6ba13b0bbc9c7c21957fb79f550ad05cf24147 100644 (file)
@@ -60,7 +60,11 @@ case "$host" in
     LIBS="$LIBS -lcurses"
     ;;
  *-*-solaris*)
-    CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
+    # see "man standards".
+    # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
+    # -D_XOPEN_SOURCE=600 seems OK for c99
+    #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
+    CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
     libxnet=-lxnet
     ;;
 esac