X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fcompat.h;h=4968587e65159fc23f12d4fc0b95fbc1c7392557;hb=875422c8e52e8f58e54912b9afffd0a33f2e121b;hp=dbc79315c91e3bed07ddfc0d0a5bc838260861b5;hpb=e0520732f1170797ecede546e346fea23c124d03;p=srvx.git diff --git a/src/compat.h b/src/compat.h index dbc7931..4968587 100644 --- a/src/compat.h +++ b/src/compat.h @@ -61,6 +61,16 @@ char *alloca(); #include #endif +#ifdef HAVE_WINSOCK2_H +/* Windows XP+ only -- older versions lack getaddrinfo() etc. */ +# define _WIN32_WINNT 0x0501 +# include +#endif + +#ifdef HAVE_WS2TCPIP_H +# include +#endif + #ifdef HAVE_UNISTD_H #include #endif