summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-01-31 18:39:49 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-01-31 18:39:49 +0000
commit657563f2d7284e2e2a6129764ccab0fb1dcfe664 (patch)
treec403cf3bb3e0dc18a472f0f8b3a81184c55f9bc2
parentc4cd1bcb84e7cd1c8acd76d2359f3b75d66b8e29 (diff)
ntp: fix time sync issue
Fix for https://support.ntp.org/bugs/show_bug.cgi?id=769 - Patch from gentoo.
-rw-r--r--package/ntp/ntp-4.2.4_p5-adjtimex.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/ntp/ntp-4.2.4_p5-adjtimex.patch b/package/ntp/ntp-4.2.4_p5-adjtimex.patch
new file mode 100644
index 000000000..40625fa18
--- /dev/null
+++ b/package/ntp/ntp-4.2.4_p5-adjtimex.patch
@@ -0,0 +1,33 @@
+https://support.ntp.org/bugs/show_bug.cgi?id=769
+http://bugs.gentoo.org/254030
+
+--- ntp/util/tickadj.c
++++ ntp/util/tickadj.c
+@@ -21,7 +21,8 @@
+ # include <unistd.h>
+ #endif /* HAVE_UNISTD_H */
+
+-#ifdef HAVE___ADJTIMEX /* Linux */
++/* proper handling here has been moved to upstream ntp bugzilla */
++#ifdef linux
+
+ #include <sys/timex.h>
+ struct timex txc;
+@@ -91,7 +92,7 @@
+ }
+
+ if (!errflg) {
+- if (__adjtimex(&txc) < 0)
++ if (adjtimex(&txc) < 0)
+ perror("adjtimex");
+ else if (!quiet)
+ printf("tick = %ld\ntick_adj = %d\n",
+@@ -146,7 +147,7 @@
+ #endif
+ }
+
+- if (__adjtimex(&txc) < 0)
++ if (adjtimex(&txc) < 0)
+ {
+ perror("adjtimex");
+ }