[ntpsec commit] Define CLOCK_* in config.h so refclock_conf() can pick them up.

Amar Takhar amar at ntpsec.org
Thu Oct 1 22:11:33 UTC 2015


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

Author:    Amar Takhar <verm at darkbeer.org>
Date:      Thu Oct  1 18:11:07 2015 -0400

Define CLOCK_* in config.h so refclock_conf() can pick them up.

---

 pylib/refclock.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pylib/refclock.py b/pylib/refclock.py
index ab21972..c8a38d2 100644
--- a/pylib/refclock.py
+++ b/pylib/refclock.py
@@ -218,6 +218,8 @@ def refclock_config(ctx):
 		ctx.end_msg(rc["descr"])
 		ctx.env["REFCLOCK_%s" % rc["file"].upper()] = True
 
+		ctx.define(rc["define"], 1)
+
 		refclock = True
 
 	if refclock:



More information about the vc mailing list