OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ntp/ntp-4.2.6p2-nano.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Patch was taken from fedora but rediffed against 4.2.6p2
  17. original patch: http://cvs.fedoraproject.org/viewvc/devel/ntp/ntp-4.2.4p7-nano.patch?revision=1.2&content-type=text%2Fplain&view=co
  18. Further information and alternative patches:
  19. https://support.ntp.org/bugs/show_bug.cgi?id=888
  20. https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/412242
  21. diff -ruN ntp-4.2.6p2-orig/include/ntp_syscall.h ntp-4.2.6p2/include/ntp_syscall.h
  22. --- ntp-4.2.6p2-orig/include/ntp_syscall.h 2009-12-09 08:36:37.000000000 +0100
  23. +++ ntp-4.2.6p2/include/ntp_syscall.h 2010-07-26 10:07:22.068755685 +0200
  24. @@ -14,6 +14,14 @@
  25. # include <sys/timex.h>
  26. #endif
  27. +#if defined(ADJ_NANO) && !defined(MOD_NANO)
  28. +#define MOD_NANO ADJ_NANO
  29. +#endif
  30. +
  31. +#if defined(ADJ_TAI) && !defined(MOD_TAI)
  32. +#define MOD_TAI ADJ_TAI
  33. +#endif
  34. +
  35. #ifndef NTP_SYSCALLS_LIBC
  36. #ifdef NTP_SYSCALLS_STD
  37. # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))