[Git][NTPsec/ntpsec][master] Define _POSIX_PTHREAD_SEMANTICS on Solaris to force POSIX function definitions
Matt Selsky
gitlab at mg.gitlab.com
Tue Jan 17 06:10:07 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
a52745fe by Matt Selsky at 2017-01-17T01:07:29-05:00
Define _POSIX_PTHREAD_SEMANTICS on Solaris to force POSIX function definitions
Otherwise we get legacy Solaris definitions
Partially fixes GitLab issue #207 and #209
- - - - -
1 changed file:
- wafhelpers/configure.py
Changes:
=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -261,6 +261,10 @@ def cmd_configure(ctx, config):
ctx.define("__APPLE_USE_RFC_3542", 1,
comment="Needed for IPv6 support")
+ if sys.platform.startswith("sunos"):
+ ctx.define("_POSIX_PTHREAD_SEMANTICS", "1", quote=False,
+ comment="Needed for POSIX function definitions on Solaris")
+
ctx.define("PLATFORM_FULL", platform.platform())
# int32_t and uint32_t probes aren't really needed, POSIX guarantees
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a52745fe8d20012f2b463181d0bfb228e64cd955
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170117/402bb0ad/attachment.html>
More information about the vc
mailing list