summaryrefslogtreecommitdiffstats
path: root/source/lib/netmask.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/netmask.c')
-rw-r--r--source/lib/netmask.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/lib/netmask.c b/source/lib/netmask.c
index 6d710583758..0f0b8a0f629 100644
--- a/source/lib/netmask.c
+++ b/source/lib/netmask.c
@@ -37,6 +37,13 @@
#ifdef HAVE_NETMASK_IFCONF
+#ifdef RELIANTUNIX
+/*
+ * <unistd.h> must be included first to compile this file on ReliantUNIX
+ */
+#include <unistd.h>
+#endif
+
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>