diff --git a/src/server.c b/src/server.c index 330d5ef1..e4ecbe1e 100644 --- a/src/server.c +++ b/src/server.c @@ -28,8 +28,20 @@ #include #include #include -#ifndef _WIN32 -#include + +#ifdef _WIN32 +# include +# include + + /* + * is necessary for getaddrinfo before Windows XP, but it isn't + * available on some platforms like MinGW. + */ +# ifdef HAVE_WSPIAPI_H +# include +# endif +#else +# include #endif #include "libssh/priv.h"