[ntpsec commit] Minor fix for case where PPS is not available.

Eric S. Raymond esr at ntpsec.org
Wed Oct 21 05:12:50 UTC 2015


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

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Wed Oct 21 01:12:34 2015 -0400

Minor fix for case where PPS is not available.

---

 ntpfrob/pps-api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntpfrob/pps-api.c b/ntpfrob/pps-api.c
index 050b227..838c01f 100644
--- a/ntpfrob/pps-api.c
+++ b/ntpfrob/pps-api.c
@@ -11,7 +11,6 @@
 
 #include "config.h"
 
-#ifdef HAVE_SYS_TIMEPPS_H
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>
@@ -19,6 +18,7 @@
 #include <sys/types.h>
 #include <time.h>
 #include <unistd.h>
+#ifdef HAVE_SYS_TIMEPPS_H
 #include <sys/timepps.h>
 
 #define timespecsub(vvp, uvp)                                           \



More information about the vc mailing list