summaryrefslogtreecommitdiff
path: root/package/openntpd/patches/patch-openbsd-compat_openbsd-compat_h
blob: cdc7cc67931aabbda5c3a3337037fc93d99f3d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$Id$

	part of the "adjtime-linux" patch

--- openntpd-3.9p1.orig/openbsd-compat/openbsd-compat.h	2006-05-14 05:29:19.000000000 +0000
+++ openntpd-3.9p1/openbsd-compat/openbsd-compat.h	2007-01-28 20:49:48.000000000 +0000
@@ -46,6 +46,11 @@ int      asprintf(char **, const char *,
                 __attribute__((__format__ (printf, 2, 3)));
 #endif
 
+#ifdef USE_ADJTIMEX
+# include <sys/time.h>
+int _compat_adjtime(const struct timeval *, struct timeval *);
+#endif
+
 #ifndef HAVE_INET_PTON
 int inet_pton(int, const char *, void *);
 #endif