diff options
author | Petr Štetiar <ynezz@true.cz> | 2010-10-03 02:14:34 +0000 |
---|---|---|
committer | Eric Bénard <eric@eukrea.com> | 2010-10-04 22:03:14 +0200 |
commit | b0bcd6021f3f03a089220ac68fc9156dec894aa1 (patch) | |
tree | 1ea15bea4368893d04ec64142de3b57cfc0540e9 /recipes/ntpclient/files | |
parent | 6f9816c29e6eab5589f089d29a6b1d05275d32cf (diff) | |
download | openembedded-b0bcd6021f3f03a089220ac68fc9156dec894aa1.tar.gz |
ntpclient: fix adjtimex compile error on uclibc
ntpclient.o: In function `set_freq':
ntpclient-2007_365-r3/ntpclient-2007/ntpclient.c:166: undefined reference to `__adj timex'
ntpclient.o: In function `get_current_freq':
ntpclient-2007_365-r3/ntpclient-2007/ntpclient.c:149: undefined reference to `__adj timex'
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'recipes/ntpclient/files')
-rw-r--r-- | recipes/ntpclient/files/fix-adjtimex-uclibc.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/ntpclient/files/fix-adjtimex-uclibc.patch b/recipes/ntpclient/files/fix-adjtimex-uclibc.patch new file mode 100644 index 0000000000..49472c9d4c --- /dev/null +++ b/recipes/ntpclient/files/fix-adjtimex-uclibc.patch @@ -0,0 +1,22 @@ +Index: ntpclient-2007/ntpclient.c +=================================================================== +--- ntpclient-2007.orig/ntpclient.c 2010-10-01 17:25:20.000000000 +0200 ++++ ntpclient-2007/ntpclient.c 2010-10-01 17:25:38.000000000 +0200 +@@ -146,7 +146,7 @@ + #ifdef __linux__ + struct timex txc; + txc.modes=0; +- if (__adjtimex(&txc) < 0) { ++ if (adjtimex(&txc) < 0) { + perror("adjtimex"); exit(1); + } + return txc.freq; +@@ -163,7 +163,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; |