xref: /OK3568_Linux_fs/buildroot/package/ntp/0001-nano.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Fixes issues with glibc header files, see
2http://bugs.gentoo.org/show_bug.cgi?id=270483
3
4Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5
6Rebase to apply cleanly.
7
8Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
9
10
11diff -purN a/include/ntp_syscall.h b/include/ntp_syscall.h
12--- a/include/ntp_syscall.h	2015-02-11 08:42:37.794576469 -0500
13+++ b/include/ntp_syscall.h	2015-02-11 08:43:03.216957279 -0500
14@@ -10,6 +10,14 @@
15 # include <sys/timex.h>
16 #endif
17
18+#if defined(ADJ_NANO) && !defined(MOD_NANO)
19+#define MOD_NANO ADJ_NANO
20+#endif
21+
22+#if defined(ADJ_TAI) && !defined(MOD_TAI)
23+#define MOD_TAI ADJ_TAI
24+#endif
25+
26 #ifndef NTP_SYSCALLS_LIBC
27 # ifdef NTP_SYSCALLS_STD
28 #  define ntp_adjtime(t)	syscall(SYS_ntp_adjtime, (t))
29