From 34c56e014ff44329416b609e1be208fd8e2ad4bf Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Thu, 27 Jan 2011 13:24:10 -0300 Subject: ntp: bump to version 4.2.6p3 and fix glibc build failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump to version 4.2.6p3 and fix a build failure with external toolchains that use certain glibc versions as point out by speakman on IRC. Signed-off-by: Gustavo Zacarias Acked-by: Daniel Nyström Signed-off-by: Peter Korsgaard --- package/ntp/ntp-adjtimex.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/ntp/ntp-adjtimex.patch (limited to 'package/ntp/ntp-adjtimex.patch') diff --git a/package/ntp/ntp-adjtimex.patch b/package/ntp/ntp-adjtimex.patch new file mode 100644 index 000000000..40625fa18 --- /dev/null +++ b/package/ntp/ntp-adjtimex.patch @@ -0,0 +1,33 @@ +https://support.ntp.org/bugs/show_bug.cgi?id=769 +http://bugs.gentoo.org/254030 + +--- ntp/util/tickadj.c ++++ ntp/util/tickadj.c +@@ -21,7 +21,8 @@ + # include + #endif /* HAVE_UNISTD_H */ + +-#ifdef HAVE___ADJTIMEX /* Linux */ ++/* proper handling here has been moved to upstream ntp bugzilla */ ++#ifdef linux + + #include + 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"); + } -- cgit v1.2.3