[ntpsec commit] Remove unnecessary config symbol.
Eric S. Raymond
esr at ntpsec.org
Tue Sep 29 20:44:29 UTC 2015
Module: ntpsec
Branch: master
Commit: d7bb6bd4ff0670e0dc79a0dfe710b874691aa2a9
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=d7bb6bd4ff0670e0dc79a0dfe710b874691aa2a9
Author: Eric S. Raymond <esr at thyrsus.com>
Date: Tue Sep 29 14:12:43 2015 -0400
Remove unnecessary config symbol.
This didn't show up as a problem before because all of our current
target systems have timegm(3).
---
libntp/mktime.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libntp/mktime.c b/libntp/mktime.c
index 06ba7ef..f8f1663 100644
--- a/libntp/mktime.c
+++ b/libntp/mktime.c
@@ -60,7 +60,7 @@
#include <config.h>
#include "ntp_machine.h"
-#if !defined(HAVE_TIMEGM) && defined(WANT_TIMEGM)
+#if !defined(HAVE_TIMEGM)
#if SIZEOF_TIME_T >= 8
#error libntp supplied mktime()/timegm() do not support 64-bit time_t
@@ -285,7 +285,6 @@ mktime(
}
#endif /* __UNUSED__ */
-#ifdef WANT_TIMEGM
#ifndef HAVE_TIMEGM
time_t
timegm(
@@ -303,4 +302,3 @@ timegm(
return WRONG;
}
#endif /* !HAVE_TIMEGM */
-#endif /* WANT_TIMEGM */
More information about the vc
mailing list