aboutsummaryrefslogtreecommitdiffstats
path: root/common/srv.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/srv.c')
-rw-r--r--common/srv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/srv.c b/common/srv.c
index 74afbcb71..380e356bd 100644
--- a/common/srv.c
+++ b/common/srv.c
@@ -30,7 +30,10 @@
#include <config.h>
#include <sys/types.h>
#ifdef _WIN32
-#include <windows.h>
+# ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+# endif
+# include <windows.h>
#else
#include <netinet/in.h>
#include <arpa/nameser.h>