summaryrefslogtreecommitdiff
path: root/net/openntpd/files/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/openntpd/files/compat.h')
-rw-r--r--net/openntpd/files/compat.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/openntpd/files/compat.h b/net/openntpd/files/compat.h
new file mode 100644
index 000000000000..47050687b460
--- /dev/null
+++ b/net/openntpd/files/compat.h
@@ -0,0 +1,25 @@
+/*
+ * This file is in the public domain.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef SA_LEN
+# define SA_LEN(x) ((x)->sa_len)
+#endif
+
+#ifndef EAI_NODATA
+# define EAI_NODATA EAI_NONAME
+#endif
+
+#ifndef __dead
+# define __dead
+#endif
+
+#undef HAVE_SENSORS
+
+/* adjfreq.c */
+int adjfreq(const int64_t *, int64_t *);
+
+/* arc4random.c */
+u_int32_t arc4random_uniform(u_int32_t);