summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntp/ntp/ntp-4.2.4_p6-nano.patch
blob: d45b7e38b7389e87109ee0a4064131062992c979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 2310898533f059d875dcffd26ab6cf1b280292fd Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Wed, 12 Jan 2011 21:38:46 +0100

---
 include/ntp_syscall.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/ntp_syscall.h b/include/ntp_syscall.h
index d1ce03e..9e18432 100644
--- a/include/ntp_syscall.h
+++ b/include/ntp_syscall.h
@@ -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))