From: Dave Hart Date: Sat, 30 Jan 2010 06:26:12 +0000 (+0000) Subject: * [Bug 1469] u_int32, int32 changes broke HP-UX 10.20 build. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bbc1e584020ef1e951a7451fbe628c5c68ab116;p=thirdparty%2Fntp.git * [Bug 1469] u_int32, int32 changes broke HP-UX 10.20 build. bk: 4b63d104kI__V82BklejnmIw_ThsDQ --- diff --git a/ChangeLog b/ChangeLog index 728ca0a765..250376378a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * [Bug 1468] 'make install' broken for root on default NFS mount. +* [Bug 1469] u_int32, int32 changes broke HP-UX 10.20 build. (4.2.7p11) 2010/01/28 Released by Harlan Stenn * [Bug 47] Debugging and logging do not work after a fork. * [Bug 1010] getaddrinfo() could block and thus should not be called by diff --git a/include/ntp_types.h b/include/ntp_types.h index c526df0af6..70e798c127 100644 --- a/include/ntp_types.h +++ b/include/ntp_types.h @@ -7,6 +7,9 @@ #ifndef NTP_TYPES_H #define NTP_TYPES_H +#ifdef HAVE_STDINT_H +# include +#endif #include #include "ntp_machine.h" @@ -41,13 +44,12 @@ #if defined(VMS) #include typedef unsigned int u_int; -/* - * Note: VMS DECC has long == int (even on __alpha), - * so the distinction below doesn't matter - */ #endif /* VMS */ -#if (SIZEOF_INT == 4) +#ifdef HAVE_UINT32_T + typedef int32_t int32; + typedef uint32_t u_int32; +#elif (SIZEOF_INT == 4) # ifndef int32 typedef int int32; # endif @@ -65,7 +67,7 @@ typedef unsigned int u_int; # else /* SIZEOF_LONG != 4 */ # include "Bletch: what's 32 bits on this machine?" # endif -#endif /* SIZEOF_INT != 4 */ +#endif /* !HAVE_UINT32_t && SIZEOF_INT != 4 */ typedef u_char ntp_u_int8_t; typedef u_short ntp_u_int16_t;