avoid duplicate typedefs, as this type is also defined in our public headers
This commit is contained in:
parent
778b6a86c0
commit
e6efecd054
@ -285,6 +285,7 @@ int fileno( FILE *stream);
|
|||||||
|
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
||||||
|
#ifndef curl_socket_typedef
|
||||||
/* now typedef our socket type */
|
/* now typedef our socket type */
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
typedef SOCKET curl_socket_t;
|
typedef SOCKET curl_socket_t;
|
||||||
@ -293,6 +294,9 @@ typedef SOCKET curl_socket_t;
|
|||||||
typedef int curl_socket_t;
|
typedef int curl_socket_t;
|
||||||
#define CURL_SOCKET_BAD -1
|
#define CURL_SOCKET_BAD -1
|
||||||
#endif
|
#endif
|
||||||
|
#define curl_socket_typedef
|
||||||
|
#endif /* curl_socket_typedef */
|
||||||
|
|
||||||
|
|
||||||
#if defined(ENABLE_IPV6) && defined(USE_ARES)
|
#if defined(ENABLE_IPV6) && defined(USE_ARES)
|
||||||
#error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild"
|
#error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user