The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / ntp / 0001-nano.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/ntp/0001-nano.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/ntp/0001-nano.patch
new file mode 100644 (file)
index 0000000..bce3478
--- /dev/null
@@ -0,0 +1,28 @@
+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>
+
+Rebase to apply cleanly.
+
+Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
+
+
+diff -purN a/include/ntp_syscall.h b/include/ntp_syscall.h
+--- a/include/ntp_syscall.h    2015-02-11 08:42:37.794576469 -0500
++++ b/include/ntp_syscall.h    2015-02-11 08:43:03.216957279 -0500
+@@ -10,6 +10,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))