summaryrefslogtreecommitdiffstats
path: root/lib/replace/system/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/system/network.h')
-rw-r--r--lib/replace/system/network.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h
index 273cb716cf..4a3fd07d8e 100644
--- a/lib/replace/system/network.h
+++ b/lib/replace/system/network.h
@@ -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>
@@ -77,10 +79,6 @@
#include <net/if.h>
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif