0001-nano.patch 747 B

12345678910111213141516171819202122232425262728
  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. Rebase to apply cleanly.
  5. Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
  6. diff -purN a/include/ntp_syscall.h b/include/ntp_syscall.h
  7. --- a/include/ntp_syscall.h 2015-02-11 08:42:37.794576469 -0500
  8. +++ b/include/ntp_syscall.h 2015-02-11 08:43:03.216957279 -0500
  9. @@ -10,6 +10,14 @@
  10. # include <sys/timex.h>
  11. #endif
  12. +#if defined(ADJ_NANO) && !defined(MOD_NANO)
  13. +#define MOD_NANO ADJ_NANO
  14. +#endif
  15. +
  16. +#if defined(ADJ_TAI) && !defined(MOD_TAI)
  17. +#define MOD_TAI ADJ_TAI
  18. +#endif
  19. +
  20. #ifndef NTP_SYSCALLS_LIBC
  21. # ifdef NTP_SYSCALLS_STD
  22. # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))