diff --git a/src/compat.h b/src/compat.h
index 65e9683e2..aae84b118 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -33,7 +33,7 @@
 #include <ws2tcpip.h>
 #include <stdint.h>
 #else
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <sys/mman.h>
 #include <sys/select.h>
 #include <sys/socket.h>