summaryrefslogtreecommitdiff
path: root/package/openntpd/patches/patch-defines_h
diff options
context:
space:
mode:
Diffstat (limited to 'package/openntpd/patches/patch-defines_h')
-rw-r--r--package/openntpd/patches/patch-defines_h17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/openntpd/patches/patch-defines_h b/package/openntpd/patches/patch-defines_h
new file mode 100644
index 000000000..9e2b35bf1
--- /dev/null
+++ b/package/openntpd/patches/patch-defines_h
@@ -0,0 +1,17 @@
+$Id$
+
+ part of the "adjtime-linux" patch
+
+--- openntpd-3.9p1.orig/defines.h 2006-05-14 05:29:21.000000000 +0000
++++ openntpd-3.9p1/defines.h 2007-01-28 20:49:48.000000000 +0000
+@@ -20,6 +20,10 @@
+ # define setproctitle(x)
+ #endif
+
++#ifdef USE_ADJTIMEX
++# define adjtime(a,b) (_compat_adjtime((a),(b)))
++#endif
++
+ #if !defined(SA_LEN)
+ # if defined(HAVE_STRUCT_SOCKADDR_SA_LEN)
+ # define SA_LEN(x) ((x)->sa_len)