ntp-nano.patch 707 B

1234567891011121314151617181920212223
  1. Fixes issues with glibc header files, see
  2. http://bugs.gentoo.org/show_bug.cgi?id=270483
  3. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  4. diff -Nura ntp-4.2.6p2.orig/include/ntp_syscall.h ntp-4.2.6p2/include/ntp_syscall.h
  5. --- ntp-4.2.6p2.orig/include/ntp_syscall.h 2009-12-09 04:36:37.000000000 -0300
  6. +++ ntp-4.2.6p2/include/ntp_syscall.h 2011-01-27 13:09:05.072336628 -0300
  7. @@ -14,6 +14,14 @@
  8. # include <sys/timex.h>
  9. #endif
  10. +#if defined(ADJ_NANO) && !defined(MOD_NANO)
  11. +#define MOD_NANO ADJ_NANO
  12. +#endif
  13. +
  14. +#if defined(ADJ_TAI) && !defined(MOD_TAI)
  15. +#define MOD_TAI ADJ_TAI
  16. +#endif
  17. +
  18. #ifndef NTP_SYSCALLS_LIBC
  19. #ifdef NTP_SYSCALLS_STD
  20. # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))