diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config-win32.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/config-win32.h b/src/config-win32.h index c32ab1717..61471a323 100644 --- a/src/config-win32.h +++ b/src/config-win32.h @@ -244,6 +244,20 @@ # endif #endif +/* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite */ +/* convoluted, compiler dependant and in some cases even build target dependat. */ +#if defined(HAVE_WS2TCPIP_H) +# if defined(_MSC_VER) && (_MSC_VER >= 1200) +# define HAVE_FREEADDRINFO 1 +# define HAVE_GETADDRINFO 1 +# define HAVE_GETNAMEINFO 1 +# elif defined(__MINGW32__) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) +# define HAVE_FREEADDRINFO 1 +# define HAVE_GETADDRINFO 1 +# define HAVE_GETNAMEINFO 1 +# endif +#endif + /* ---------------------------------------------------------------- */ /* LARGE FILE SUPPORT */ /* ---------------------------------------------------------------- */ |