From: Harlan Stenn Date: Wed, 26 Nov 2008 11:02:22 +0000 (-0500) Subject: Update Solaris CFLAGS for gsoc_sntp X-Git-Tag: NTP_4_2_5P146~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c593a6555007338f7e233b7e5462b3caec5695ee;p=thirdparty%2Fntp.git Update Solaris CFLAGS for gsoc_sntp bk: 492d2cbeFLkwGmfHcVs4fDg9jCSNGQ --- diff --git a/ChangeLog b/ChangeLog index 4b7754571..fc2bfe975 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* Update Solaris CFLAGS for gsoc_sntp. (4.2.5p145) 2008/11/20 Released by Harlan Stenn * Deal with time.h for sntp under linux. * Provide rpl_malloc() for sntp for systems that need it. diff --git a/gsoc_sntp/configure.ac b/gsoc_sntp/configure.ac index d81de3d07..588475e4d 100644 --- a/gsoc_sntp/configure.ac +++ b/gsoc_sntp/configure.ac @@ -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