[Git][NTPsec/ntpsec][master] Only build strl_obsd.c if the platform needs it
Matt Selsky
gitlab at mg.gitlab.com
Thu Dec 29 16:47:44 UTC 2016
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
1897139a by Matt Selsky at 2016-12-29T11:46:35-05:00
Only build strl_obsd.c if the platform needs it
Fixes GitLab issue #216 on macOS
- - - - -
1 changed file:
- libntp/wscript
Changes:
=====================================
libntp/wscript
=====================================
--- a/libntp/wscript
+++ b/libntp/wscript
@@ -40,11 +40,13 @@ def build(ctx):
"ntp_calendar.c",
"prettydate.c",
"statestr.c",
- "strl_obsd.c",
"systime.c",
"timetoa.c",
]
+ if not ctx.env.HAVE_STRLCAT or not ctx.env.HAVE_STRLCPY:
+ libntp_source_sharable += ["strl_obsd.c"]
+
includes = [
"%s/libisc/include/" % srcnode,
"%s/libisc/unix/include/" % srcnode, # XXX: platform: requires unix/win32 switch.
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1897139ad242c3049060716fe021e25531393c0b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161229/98517af3/attachment.html>
More information about the vc
mailing list