summaryrefslogtreecommitdiffstats
path: root/package/ntp/ntp-nano.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-01-27 13:24:10 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2011-01-30 00:40:13 +0100
commit34c56e014ff44329416b609e1be208fd8e2ad4bf (patch)
treef656fb75f94adf246f9495ec6051ba094db7aa30 /package/ntp/ntp-nano.patch
parent950a63a75383ec42795ec4a0c1559bbc832912be (diff)
downloadbuildroot-novena-34c56e014ff44329416b609e1be208fd8e2ad4bf.tar.gz
buildroot-novena-34c56e014ff44329416b609e1be208fd8e2ad4bf.zip
ntp: bump to version 4.2.6p3 and fix glibc build failure
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 <gustavo@zacarias.com.ar> Acked-by: Daniel Nyström <daniel.nystrom@timeterminal.se> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/ntp/ntp-nano.patch')
-rw-r--r--package/ntp/ntp-nano.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/ntp/ntp-nano.patch b/package/ntp/ntp-nano.patch
new file mode 100644
index 000000000..d16046cb0
--- /dev/null
+++ b/package/ntp/ntp-nano.patch
@@ -0,0 +1,23 @@
+Fixes issues with glibc header files, see
+http://bugs.gentoo.org/show_bug.cgi?id=270483
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura ntp-4.2.6p2.orig/include/ntp_syscall.h ntp-4.2.6p2/include/ntp_syscall.h
+--- ntp-4.2.6p2.orig/include/ntp_syscall.h 2009-12-09 04:36:37.000000000 -0300
++++ ntp-4.2.6p2/include/ntp_syscall.h 2011-01-27 13:09:05.072336628 -0300
+@@ -14,6 +14,14 @@
+ # include <sys/timex.h>
+ #endif
+
++#if defined(ADJ_NANO) && !defined(MOD_NANO)
++#define MOD_NANO ADJ_NANO
++#endif
++
++#if defined(ADJ_TAI) && !defined(MOD_TAI)
++#define MOD_TAI ADJ_TAI
++#endif
++
+ #ifndef NTP_SYSCALLS_LIBC
+ #ifdef NTP_SYSCALLS_STD
+ # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))