replace: Fix includes of unistd.h
[samba.git] / lib / replace / system / network.h
index 273cb716cf4b339be5fd0d7932389b3f855e582c..4a3fd07d8e1e0a42c956a11f3c1b35c3a2043dcf 100644 (file)
@@ -31,7 +31,9 @@
 #error "AC_LIBREPLACE_NETWORK_CHECKS missing in configure"
 #endif
 
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #include <net/if.h>
 #endif
 
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
 #endif