summary refs log tree commit diff stats
path: root/src/common/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/network.c')
-rw-r--r--src/common/network.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/network.c b/src/common/network.c
index 0c409506..eba24b05 100644
--- a/src/common/network.c
+++ b/src/common/network.c
@@ -21,9 +21,12 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
-#include <unistd.h>
 #include <glib.h>
 
+#ifndef WIN32
+#include <unistd.h>
+#endif
+
 #include "../../config.h"				  /* grab USE_IPV6 and LOOKUPD defines */
 
 #define WANTSOCKET