diff options
Diffstat (limited to 'lib/config-win32.h')
-rw-r--r-- | lib/config-win32.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h index 24c35d33..90c10547 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -188,6 +188,9 @@ /* Define to 1 if you have the `getpeername' function. */ #define HAVE_GETPEERNAME 1 +/* Define to 1 if you have the getsockname function. */ +#define HAVE_GETSOCKNAME 1 + /* Define if you have the gethostbyaddr function. */ #define HAVE_GETHOSTBYADDR 1 @@ -582,8 +585,9 @@ Vista # endif #endif -/* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is - quite convoluted, compiler dependent and even build target dependent. */ +/* Availability of freeaddrinfo, getaddrinfo, getnameinfo and if_nametoindex + functions is quite convoluted, compiler dependent and even build target + dependent. */ #if defined(HAVE_WS2TCPIP_H) # if defined(__POCC__) # define HAVE_FREEADDRINFO 1 @@ -713,8 +717,12 @@ Vista #define USE_WIN32_CRYPTO /* Define to use Unix sockets. */ -#if defined(_MSC_VER) && _MSC_VER >= 1900 -/* #define USE_UNIX_SOCKETS */ +#if defined(_MSC_VER) && (_MSC_VER >= 1500) +/* sdkddkver.h first shipped with Platform SDK v6.0A included with VS2008 */ +#include <sdkddkver.h> +#if defined(NTDDI_WIN10_RS4) +#define USE_UNIX_SOCKETS +#endif #endif /* ---------------------------------------------------------------- */ |