mirror of
https://github.com/curl/curl.git
synced 2026-04-16 05:21:40 +03:00
moved the curl_socket_t typedef downwards
This commit is contained in:
parent
60e4b57ad8
commit
4e87dd89bf
1 changed files with 9 additions and 8 deletions
17
lib/setup.h
17
lib/setup.h
|
|
@ -113,14 +113,6 @@ 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)
|
||||
|
|
@ -251,6 +243,15 @@ int fileno( FILE *stream);
|
|||
|
||||
#endif
|
||||
|
||||
/* now typedef our socket type */
|
||||
#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(ENABLE_IPV6) && defined(USE_ARES)
|
||||
#error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue