[LinuxPPS] NTP Build Errors fixed(?), ATOM issues persisting.

William S. Brasher billb958 at door.net
Tue Aug 18 15:51:01 CEST 2009


The following patch should fix the problem of compiling ntp with recent 
(glibc > 2.9) headers:


diff -Naur ntp-4.2.4p7.org/include/ntp_syscall.h 
ntp-4.2.4p7/include/ntp_syscall.h
--- ntp-4.2.4p7.org/include/ntp_syscall.h       2004-02-24 
23:57:56.000000000 -0600
+++ ntp-4.2.4p7/include/ntp_syscall.h   2009-06-14 13:09:26.000000000 -0500
@@ -14,6 +14,14 @@
 # include <sys/timex.h>
 #endif
 
+#if defined(ADJ_NANO) && !defined(MOD_NANO)
+#define MOD_NANO ADJ_NANO
+#endif
+
+#if defined(ADJ_TAI) && !defined(MOD_TAI)
+#define MOD_TAI ADJ_TAI
+#endif
+
 #ifndef NTP_SYSCALLS_LIBC
 #ifdef NTP_SYSCALLS_STD
 # define ntp_adjtime(t)                syscall(SYS_ntp_adjtime, (t))



More information about the LinuxPPS mailing list