From: Linux Karlsson Date: Tue, 26 Jul 2011 09:21:46 +0000 (+0200) Subject: [Bug 1975] libntp/mktime.c won't work with 64-bit time_t X-Git-Tag: NTP_4_2_6P4_RC2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0e60647be063b33ce14a4b730680f23357a881e;p=thirdparty%2Fntp.git [Bug 1975] libntp/mktime.c won't work with 64-bit time_t bk: 4e2e872aMoS1fTK7GOeYuCsCszq0AQ --- diff --git a/ChangeLog b/ChangeLog index a66aec65d..ea64e6ff6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ * [Bug 1961] html2man update: distribute ntp-wait.html. * [Bug 1970] UNLINK_EXPR_SLIST() causes crash if list is empty. * [Bug 1972] checking for struct rtattr fails. +* [Bug 1975] libntp/mktime.c won't work with 64-bit time_t --- (4.2.6p4-RC1) 2011/07/10 Released by Harlan Stenn diff --git a/libntp/mktime.c b/libntp/mktime.c index 381cc4f6d..f5590d1c0 100644 --- a/libntp/mktime.c +++ b/libntp/mktime.c @@ -63,6 +63,10 @@ #if !defined(HAVE_MKTIME) || !defined(HAVE_TIMEGM) +#if SIZEOF_TIME_T >= 8 +#error libntp supplied mktime()/timegm() do not support 64-bit time_t +#endif + #ifndef DSTMINUTES #define DSTMINUTES 60 #endif