diff -ur curl.org/src/Makefile.vc10 curl/src/Makefile.vc10
--- curl.org/src/Makefile.vc10	2016-07-04 03:45:24.102995951 +0200
+++ curl/src/Makefile.vc10	2016-07-04 03:48:00.547835559 +0200
@@ -127,7 +127,7 @@
 LINKD = link.exe /incremental:yes /debug /libpath:"../lib"
 RCD   = rc.exe /dDEBUGBUILD=1
 
-CFLAGS   = /I../lib /I../include /nologo /W3 /EHsc /DWIN32 /FD /c /D_BIND_TO_CURRENT_VCLIBS_VERSION=1
+CFLAGS   = /I../lib /I../include /nologo /W3 /EHsc /DWIN32 /FD /c /D_BIND_TO_CURRENT_VCLIBS_VERSION=1 /D_WIN32_WINNT=0x0502
 LFLAGS   = /nologo /out:$(PROGRAM_NAME) /subsystem:console /machine:$(MACHINE)
 RESFLAGS = /i../include
 
