aboutsummaryrefslogtreecommitdiff
path: root/include/ntp_intres.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ntp_intres.h')
-rw-r--r--include/ntp_intres.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/ntp_intres.h b/include/ntp_intres.h
new file mode 100644
index 000000000000..53c8a63a4076
--- /dev/null
+++ b/include/ntp_intres.h
@@ -0,0 +1,14 @@
+#ifndef NTP_INTRES_H
+#define NTP_INTRES_H
+
+/*
+ * Some systems do not support fork() and don't have an alternate
+ * threads implementation of ntp_intres. Such systems are limited
+ * to using numeric IP addresses.
+ */
+#if defined(VMS) || defined (SYS_VXWORKS) || \
+ (!defined(HAVE_WORKING_FORK) && !defined(SYS_WINNT))
+#define NO_INTRES
+#endif
+
+#endif /* !defined(NTP_INTRES_H) */