diff options
author | Steve Holme <steve_holme@hotmail.com> | 2019-05-24 07:02:06 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2019-05-28 07:36:06 +0100 |
commit | 28526e9c80f7c923fac0aef503c7a63d84994282 (patch) | |
tree | 38c125b0edf226e42ecd8904c7cb4ca44ff80586 /lib | |
parent | 5aa2347f22807b05e888908f4f4948d4121c8194 (diff) |
curl-win32.h: Enable Unix Domain Sockets based on the Windows SDK version
Microsoft added support for Unix Domain Sockets in Windows 10 1803
(RS4). Rather than expect the user to enable Unix Domain Sockets by
uncommenting the #define that was added in 0fd6221f we use the RS4
pre-processor variable that is present in newer versions of the
Windows SDK.
Closes #3939
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config-win32.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h index 08cfd0d4c..14bd084fe 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -727,8 +727,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 /* ---------------------------------------------------------------- */ |