summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index bb261e7..3dad534 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -76,6 +76,14 @@
#include <stdbool.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
/*
* Definition of timeval struct for platforms that don't have it.