[ntpsec commit] Don't build pps-api on systems that don't have sys/ timepps.h

Amar Takhar amar at ntpsec.org
Fri Oct 2 20:23:32 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    50cfb0a713c2045affc850b77ed7ae674812636b
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=50cfb0a713c2045affc850b77ed7ae674812636b

Author:    Amar Takhar <verm at darkbeer.org>
Date:      Fri Oct  2 16:23:08 2015 -0400

Don't build pps-api on systems that don't have sys/timepps.h

Broken in d9c87cb.

---

 util/wscript | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/util/wscript b/util/wscript
index 22855c7..b682b92 100644
--- a/util/wscript
+++ b/util/wscript
@@ -27,8 +27,12 @@ def build(ctx):
 			install_path= "${PREFIX}/sbin/"
 		)
 
-	for name in ['hist', 'jitter', 'pps-api', 'precision',
-	    	    	     'propdelay', 'sht', 'testrs6000', 'tg2']:
+	util = ['hist', 'jitter', 'precision', 'propdelay', 'sht', 'testrs6000', 'tg2']
+
+	if ctx.get_define("HAVE_SYS_TIMEPPS_H"):
+		util += ["pps-api"]
+
+	for name in util:
 		ctx(
 			target		= name,
 			features	= "c cprogram bld_include src_include libisc_include",



More information about the vc mailing list