]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Update Solaris CFLAGS for gsoc_sntp
authorHarlan Stenn <stenn@ntp.org>
Wed, 26 Nov 2008 11:02:22 +0000 (06:02 -0500)
committerHarlan Stenn <stenn@ntp.org>
Wed, 26 Nov 2008 11:02:22 +0000 (06:02 -0500)
bk: 492d2cbeFLkwGmfHcVs4fDg9jCSNGQ

ChangeLog
gsoc_sntp/configure.ac

index 4b775457140ea98d40fc8a0d264ab03386eb4722..fc2bfe97586e534d6fda7fdccf6e8138e6aa0269 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* Update Solaris CFLAGS for gsoc_sntp.
 (4.2.5p145) 2008/11/20 Released by Harlan Stenn <stenn@ntp.org>
 * Deal with time.h for sntp under linux.
 * Provide rpl_malloc() for sntp for systems that need it.
index d81de3d07ff6f029f0041a90b81f01763e8eeda2..588475e4de260af1869e06840397650b6c2189b1 100644 (file)
@@ -14,6 +14,17 @@ AC_PREREQ([2.53])
 # Checks for programs.
 AC_PROG_CC
 
+# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
+case "$host" in
+ *-*-solaris*)
+    # 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__"
+    ;;
+esac
+
 # NTP has (so far) been relying on leading-edge autogen.
 # Therefore, by default:
 # - use the version we ship with