]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2813] HP-UX needs -D__STDC_VERSION__=199901L and limits.h
authorHarlan Stenn <stenn@ntp.org>
Sun, 26 Apr 2015 19:53:46 +0000 (19:53 +0000)
committerHarlan Stenn <stenn@ntp.org>
Sun, 26 Apr 2015 19:53:46 +0000 (19:53 +0000)
bk: 553d424aVF9hgwiG5DD2-QmBDA_D1A

ChangeLog
include/ntp_types.h
sntp/m4/os_cflags.m4

index 564fc94f3b67fd8ed93526a1feaac44a8df2adaa..91ac1c7acf3a99688fd0a4500eaf31cb97c6e752 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
 * [Bug 2808] GPSD_JSON driver enhancements, step 1.
   Various improvements, see http://bugs.ntp.org/2808 for details.
   Changed libjsmn to a more recent version.
+* [Bug 2813] HP-UX needs -D__STDC_VERSION__=199901L and limits.h.
 * Improve the ntpq documentation around the controlkey keyid.
 * autogen-5.18.5
 ---
index 1beb16647a6609782877f1e125eab1fad73db631..1c66165b3b38efdbe17046979098ebc1fe029e87 100644 (file)
 # include <stdint.h>
 #endif
 
+/* Bug 2813 */
+#ifdef HAVE_LIMITS_H
+# include <limits.h>
+#endif
+
 #include "ntp_machine.h"
 
 
index 2ac4ffc7dfb731f9cac4b369f161272b2a1b03d7..a2161e659ad305e91f6d9e22dbb431b40a8f01ae 100644 (file)
@@ -45,7 +45,7 @@ AC_DEFUN([NTP_OS_CFLAGS], [
                ntp_os_cflags="-Ae -Wp,-H18816"
                ;;
            esac
-           ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
+           ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
            ;;
         hpux*)
            case "$GCC" in
@@ -55,7 +55,7 @@ AC_DEFUN([NTP_OS_CFLAGS], [
                # use Ansi compiler on HPUX
                ntp_os_cflags="-Ae"
            esac
-           ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
+           ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
            ;;
         irix6*)
            case "$CC" in