ntp-4.2.6p1-nano.patch 557 B

12345678910111213141516171819
  1. diff -up ntp-4.2.6p1/include/ntp_syscall.h.nano ntp-4.2.6p1/include/ntp_syscall.h
  2. --- ntp-4.2.6p1/include/ntp_syscall.h.nano 2009-12-09 08:36:37.000000000 +0100
  3. +++ ntp-4.2.6p1/include/ntp_syscall.h 2010-03-03 15:42:18.000000000 +0100
  4. @@ -14,6 +14,14 @@
  5. # include <sys/timex.h>
  6. #endif
  7. +#if defined(ADJ_NANO) && !defined(MOD_NANO)
  8. +#define MOD_NANO ADJ_NANO
  9. +#endif
  10. +
  11. +#if defined(ADJ_TAI) && !defined(MOD_TAI)
  12. +#define MOD_TAI ADJ_TAI
  13. +#endif
  14. +
  15. #ifndef NTP_SYSCALLS_LIBC
  16. #ifdef NTP_SYSCALLS_STD
  17. # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))