From 6ec3f5a73271cc9f70b4a8563f6b204c817fdb4f Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 29 Dec 2007 21:46:57 +0000 Subject: [PATCH] Fix ntpclient compilation with the recent uclibc upgrade SVN-Revision: 10032 --- net/ntpclient/patches/001-adjtimex_call.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 net/ntpclient/patches/001-adjtimex_call.patch diff --git a/net/ntpclient/patches/001-adjtimex_call.patch b/net/ntpclient/patches/001-adjtimex_call.patch new file mode 100644 index 0000000000..8c67a88da1 --- /dev/null +++ b/net/ntpclient/patches/001-adjtimex_call.patch @@ -0,0 +1,21 @@ +diff -urN ntpclient/ntpclient.c ntpclient.new/ntpclient.c +--- ntpclient/ntpclient.c 2003-07-14 04:12:30.000000000 +0200 ++++ ntpclient.new/ntpclient.c 2007-12-29 22:48:01.000000000 +0100 +@@ -128,7 +128,7 @@ + #ifdef linux + struct timex txc; + txc.modes=0; +- if (__adjtimex(&txc) < 0) { ++ if (adjtimex(&txc) < 0) { + perror("adjtimex"); exit(1); + } + return txc.freq; +@@ -145,7 +145,7 @@ + struct timex txc; + txc.modes = ADJ_FREQUENCY; + txc.freq = new_freq; +- if (__adjtimex(&txc) < 0) { ++ if (adjtimex(&txc) < 0) { + perror("adjtimex"); exit(1); + } + return txc.freq; -- 2.30.2