summaryrefslogtreecommitdiff
path: root/packages/ntp
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2007-07-07 16:26:53 +0000
committerHenning Heinold <heinold@inf.fu-berlin.de>2007-07-07 16:26:53 +0000
commitb22244ad5c2f588975bd877c0c6285bf58889551 (patch)
tree2935a906f0fd7bccd22e5d9b94210c51bcb62c9f /packages/ntp
parent14e695a70d2f2eee4b94f30aaac7d6673d416a8c (diff)
fixing ntp building for uclibc
discussion about the problem is here https://lists.ntp.org/pipermail/bugs/2007-March/005578.html and the sugesstion for the fix is from here http://blackfin.uclinux.org/gf/project/uclinux-dist/scmsvn/?action=browse&path=%2Ftrunk%2Fuser%2Fntp%2Futil%2Ftickadj.c&view=markup
Diffstat (limited to 'packages/ntp')
-rw-r--r--packages/ntp/ntp-4.2.2p3/tickadj.c.patch32
-rw-r--r--packages/ntp/ntp_4.2.2p3.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/packages/ntp/ntp-4.2.2p3/tickadj.c.patch b/packages/ntp/ntp-4.2.2p3/tickadj.c.patch
new file mode 100644
index 0000000000..9ef9de9e1f
--- /dev/null
+++ b/packages/ntp/ntp-4.2.2p3/tickadj.c.patch
@@ -0,0 +1,32 @@
+Index: ntp-4.2.2p3-r0/ntp-4.2.2p3/util/tickadj.c
+===================================================================
+--- ntp-4.2.2p3/util/tickadj.c 2004-02-25 06:58:33.000000000 +0100
++++ ntp-4.2.2p3/util/tickadj.c 2007-07-07 01:00:54.000000000 +0200
+@@ -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");
+ }
diff --git a/packages/ntp/ntp_4.2.2p3.bb b/packages/ntp/ntp_4.2.2p3.bb
index 28853e4fc8..ad861cf8f5 100644
--- a/packages/ntp/ntp_4.2.2p3.bb
+++ b/packages/ntp/ntp_4.2.2p3.bb
@@ -2,6 +2,7 @@ require ntp.inc
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \
file://ipv6only-workaround.patch;patch=1 \
+ file://tickadj.c.patch;patch=1 \
file://ntpd \
file://ntp.conf \
file://ntpdate"