bk: 52bfd570JhhaXr8U2XlQs8Pzgd3C9Q
+* [Bug 2519] mktime.c does not compile on 64-bit Solaris but we do not
+ need timegm() and the Solaris provides mktime().
* [Bug 2522] Revert Bug 2513 fix - it breaks backward compatibility.
(4.2.7p406) 2013/12/28 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2521] VPATH tweaks for perl -opts files.
#include <config.h>
#include "ntp_machine.h"
-#if !defined(HAVE_MKTIME) || !defined(HAVE_TIMEGM)
+#if !defined(HAVE_MKTIME) || ( !defined(HAVE_TIMEGM) && defined(WANT_TIMEGM) )
#if SIZEOF_TIME_T >= 8
#error libntp supplied mktime()/timegm() do not support 64-bit time_t
}
#endif /* !HAVE_MKTIME */
+#ifdef WANT_TIMEGM
#ifndef HAVE_TIMEGM
time_t
timegm(
return WRONG;
}
#endif /* !HAVE_TIMEGM */
+#endif /* WANT_TIMEGM */