aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index f5e549d79c..3924445b1a 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -28,6 +28,7 @@
#include <windows.h>
#include <ws2tcpip.h>
#else
+#include <sys/types.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <limits.h>
@@ -37,7 +38,6 @@
#include <sys/fcntl.h>
#include <sys/mman.h>
#include <sys/socket.h>
-#include <sys/types.h>
#include <unistd.h>
#endif