summaryrefslogtreecommitdiff
path: root/source/Host/common/TCPSocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Host/common/TCPSocket.cpp')
-rw-r--r--source/Host/common/TCPSocket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/Host/common/TCPSocket.cpp b/source/Host/common/TCPSocket.cpp
index c013334ce23a..a7af93f10a7f 100644
--- a/source/Host/common/TCPSocket.cpp
+++ b/source/Host/common/TCPSocket.cpp
@@ -34,6 +34,7 @@
#define CLOSE_SOCKET closesocket
typedef const char *set_socket_option_arg_type;
#else
+#include <unistd.h>
#define CLOSE_SOCKET ::close
typedef const void *set_socket_option_arg_type;
#endif