aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/platforms/posix/socket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platforms/posix/socket.cpp b/src/platforms/posix/socket.cpp
index 8d4f8fbc..51cc5cc1 100644
--- a/src/platforms/posix/socket.cpp
+++ b/src/platforms/posix/socket.cpp
@@ -19,6 +19,7 @@
#include "socket.hpp"
+#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/types.h>