[Git][NTPsec/ntpsec][master] Fix check for time_t size

Matt Selsky gitlab at mg.gitlab.com
Wed Apr 19 13:08:18 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
844b33b3 by Matt Selsky at 2017-04-19T09:01:07-04:00
Fix check for time_t size

NTP_SIZEOF_TIME_T is in bytes.  We want to warn if time_t is < 64-bit, or 8
bytes.

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -804,7 +804,7 @@ int main(int argc, char **argv) {
     for sym in ctx.env.DEFINES:
         if sym.startswith("NTP_SIZEOF_TIME_T="):
             timesize = int(sym.split("=")[1])
-            if timesize < 16:
+            if timesize < 8:
                 msg("WARNING: This system has a 32-bit time_t.")
                 msg("WARNING: Your ntpd will fail on 2038-01-19T03:14:07Z.")
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/844b33b3242dcda5adadc7945d6caa77a9f3fb5a

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/844b33b3242dcda5adadc7945d6caa77a9f3fb5a
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/bbc9dbb2/attachment.html>


More information about the vc mailing list