[Git][NTPsec/ntpsec][master] Add configure-time warning about 32-bit time_t.
Eric S. Raymond
gitlab at mg.gitlab.com
Wed Apr 19 09:27:39 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
bfac4676 by Eric S. Raymond at 2017-04-19T05:27:21-04:00
Add configure-time warning about 32-bit time_t.
- - - - -
1 changed file:
- wafhelpers/configure.py
Changes:
=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -800,10 +800,19 @@ int main(int argc, char **argv) {
else:
ctx.undefine("ENABLE_DEBUG_TIMING")
+ # Ugly hack to examine config symbols
+ for sym in ctx.env.DEFINES:
+ if sym.startswith("NTP_SIZEOF_TIME_T="):
+ timesize = int(sym.split("=")[1])
+ if timesize < 16:
+ msg("WARNING: This system has a 32-bit time_t.")
+ msg("WARNING: Your ntpd will fail on 2038-01-19T03:14:07Z.")
+
ctx.start_msg("Writing configuration header:")
ctx.write_config_header("config.h")
ctx.end_msg("config.h", "PINK")
+
def yesno(x):
if x:
return "Yes"
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/bfac467694bffd4073bd60cf3934ea68e932e719
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/bfac467694bffd4073bd60cf3934ea68e932e719
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170419/28705e9a/attachment.html>
More information about the vc
mailing list