From: Harlan Stenn Date: Sun, 26 Apr 2015 19:53:46 +0000 (+0000) Subject: [Bug 2813] HP-UX needs -D__STDC_VERSION__=199901L and limits.h X-Git-Tag: NTP_4_3_21~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a01e6e023080f730c7faee446e96632e50d52976;p=thirdparty%2Fntp.git [Bug 2813] HP-UX needs -D__STDC_VERSION__=199901L and limits.h bk: 553d424aVF9hgwiG5DD2-QmBDA_D1A --- diff --git a/ChangeLog b/ChangeLog index 564fc94f3..91ac1c7ac 100644 --- 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 --- diff --git a/include/ntp_types.h b/include/ntp_types.h index 1beb16647..1c66165b3 100644 --- a/include/ntp_types.h +++ b/include/ntp_types.h @@ -19,6 +19,11 @@ # include #endif +/* Bug 2813 */ +#ifdef HAVE_LIMITS_H +# include +#endif + #include "ntp_machine.h" diff --git a/sntp/m4/os_cflags.m4 b/sntp/m4/os_cflags.m4 index 2ac4ffc7d..a2161e659 100644 --- a/sntp/m4/os_cflags.m4 +++ b/sntp/m4/os_cflags.m4 @@ -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