diff options
Diffstat (limited to 'common/srv.c')
-rw-r--r-- | common/srv.c | 5 |
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> |