summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/client_socket.h')
-rw-r--r--net/socket/client_socket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/socket/client_socket.h b/net/socket/client_socket.h
index e959d84..28c7b4d 100644
--- a/net/socket/client_socket.h
+++ b/net/socket/client_socket.h
@@ -8,7 +8,8 @@
#include "build/build_config.h"
// For struct sockaddr and socklen_t.
-#if defined(OS_LINUX) || defined(OS_MACOSX)
+#if defined(OS_POSIX)
+#include <sys/types.h>
#include <sys/socket.h>
#elif defined(OS_WIN)
#include <ws2tcpip.h>