mirror of
https://github.com/curl/curl.git
synced 2026-07-29 21:18:05 +03:00
Gisle Vanem's IPv6-on-Windows patch applied!
This commit is contained in:
parent
7553341bad
commit
749f5387c1
20 changed files with 41 additions and 46 deletions
11
lib/setup.h
11
lib/setup.h
|
|
@ -119,6 +119,17 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)
|
|||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN /* Prevent including <winsock*.h> in <windows.h> */
|
||||
#endif
|
||||
|
||||
#include <winsock2.h> /* required by telnet.c */
|
||||
|
||||
#if defined(ENABLE_IPV6) || defined(USE_SSLEAY)
|
||||
#include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
#if !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#define sclose(x) closesocket(x)
|
||||
#define sread(x,y,z) recv(x,y,z,0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue