summaryrefslogtreecommitdiff
path: root/src/socket
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket')
-rw-r--r--src/socket/socket.h5
-rw-r--r--src/socket/socket_linux.c3
2 files changed, 3 insertions, 5 deletions
diff --git a/src/socket/socket.h b/src/socket/socket.h
index 36b101a..cf8953c 100644
--- a/src/socket/socket.h
+++ b/src/socket/socket.h
@@ -5,11 +5,12 @@
#ifndef _WIN32
#include <unistd.h>
-#include <sys/socket.h>
#include <sys/un.h>
#include <sys/eventfd.h>
-#include <netinet/in.h>
#include <arpa/inet.h>
+#include <sys/fcntl.h>
+#include <netinet/tcp.h>
+#include <netdb.h>
#include <poll.h>
#else
#include "../winwrap.h"
diff --git a/src/socket/socket_linux.c b/src/socket/socket_linux.c
index b89aac6..9f794bb 100644
--- a/src/socket/socket_linux.c
+++ b/src/socket/socket_linux.c
@@ -1,7 +1,4 @@
#include <al/log.h>
-#include <sys/fcntl.h>
-#include <netinet/tcp.h>
-#include <netdb.h>
#include "../util/error.h"