diff options
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h index f95742460..536d4d90a 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -113,6 +113,14 @@ typedef unsigned char bool; #endif #endif +#ifdef WIN32 +typedef SOCKET curl_socket_t; +#define CURL_SOCKET_BAD INVALID_SOCKET +#else +typedef int curl_socket_t; +#define CURL_SOCKET_BAD -1 +#endif + #if defined(HAVE_X509_H) && defined(HAVE_SSL_H) && defined(HAVE_RSA_H) && \ defined(HAVE_PEM_H) && defined(HAVE_ERR_H) && defined(HAVE_CRYPTO_H) && \ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO) |