summaryrefslogtreecommitdiff
path: root/recipes/ntp/ntp-4.2.4p7/tickadj.c.patch
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2009-08-08 10:08:45 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2009-08-08 10:08:45 +0200
commitf77a615dee76f1c6d560b69ec8c1a245bd46f39c (patch)
tree8db0ff94871600fd03606f3cd41bd49a9b2d2bf8 /recipes/ntp/ntp-4.2.4p7/tickadj.c.patch
parent076d31f2981d51b093d86b0751121fe1e10669b1 (diff)
parenta702c1ad0559dd6712857e2e9a8ee82513814569 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/ntp/ntp-4.2.4p7/tickadj.c.patch')
-rw-r--r--recipes/ntp/ntp-4.2.4p7/tickadj.c.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes/ntp/ntp-4.2.4p7/tickadj.c.patch b/recipes/ntp/ntp-4.2.4p7/tickadj.c.patch
new file mode 100644
index 0000000000..9ef9de9e1f
--- /dev/null
+++ b/recipes/ntp/ntp-4.2.4p7/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");
+ }