[Git][NTPsec/ntpsec][master] Fix struct field checks on platforms where size_t needs extra headers, like Linux

Matt Selsky gitlab at mg.gitlab.com
Tue Feb 7 14:58:52 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
9f9213b6 by Matt Selsky at 2017-02-07T09:55:07-05:00
Fix struct field checks on platforms where size_t needs extra headers, like Linux

Broken in "Use waf's built-in struct field existence checks"

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -255,6 +255,10 @@ def cmd_configure(ctx, config):
     for (s, h) in structures:
         ctx.check_cc(type_name=s, header_name=h, mandatory=False)
 
+    # waf's SNIP_FIELD should likely include these headers itself
+    ctx.check_cc(header_name="stdint.h", auto_add_header_name=True, mandatory=False)
+    ctx.check_cc(header_name="sys/types.h", auto_add_header_name=True, mandatory=False)
+
     structure_fields = (
         ("time_tick", "struct timex", ["sys/time.h", "sys/timex.h"]),
         ("modes", "struct timex", ["sys/time.h", "sys/timex.h"]),



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9f9213b60c9ddc55ea3be44c936d6fe4e1b3d410
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170207/ad2c16ed/attachment.html>


More information about the vc mailing list