summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index c3567b8933..fb1cc9105a 100644
--- a/src/common.h
+++ b/src/common.h
@@ -4,13 +4,12 @@
#include <config.h>
#include <gnutls/gnutls.h>
+#include <sys/socket.h>
#ifdef _WIN32
-# include <winsock.h>
# include <io.h>
# include <winbase.h>
# define close closesocket
#else
-# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# include <unistd.h>