point ntpd at the proper location of nlist.h
[openwrt/svn-archive/archive.git] / net / ntpclient / patches / 001-adjtimex_call.patch
1 diff -urN ntpclient/ntpclient.c ntpclient.new/ntpclient.c
2 --- ntpclient/ntpclient.c 2003-07-14 04:12:30.000000000 +0200
3 +++ ntpclient.new/ntpclient.c 2007-12-29 22:48:01.000000000 +0100
4 @@ -128,7 +128,7 @@
5 #ifdef linux
6 struct timex txc;
7 txc.modes=0;
8 - if (__adjtimex(&txc) < 0) {
9 + if (adjtimex(&txc) < 0) {
10 perror("adjtimex"); exit(1);
11 }
12 return txc.freq;
13 @@ -145,7 +145,7 @@
14 struct timex txc;
15 txc.modes = ADJ_FREQUENCY;
16 txc.freq = new_freq;
17 - if (__adjtimex(&txc) < 0) {
18 + if (adjtimex(&txc) < 0) {
19 perror("adjtimex"); exit(1);
20 }
21 return txc.freq;