aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-04-10 13:14:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-04-10 13:14:14 +0000
commite6efecd0543c319e4d6192e23f7a7d2a26e8e114 (patch)
tree3655d57a43f559347db44da4d319e9e8398e74a0 /lib/setup.h
parent778b6a86c0f25e6e0862f4b8afae3fdd67ae839b (diff)
avoid duplicate typedefs, as this type is also defined in our public headers
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index fc64698dd..cad81fb45 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -285,6 +285,7 @@ int fileno( FILE *stream);
#endif /* WIN32 */
+#ifndef curl_socket_typedef
/* now typedef our socket type */
#ifdef WIN32
typedef SOCKET curl_socket_t;
@@ -293,6 +294,9 @@ typedef SOCKET curl_socket_t;
typedef int curl_socket_t;
#define CURL_SOCKET_BAD -1
#endif
+#define curl_socket_typedef
+#endif /* curl_socket_typedef */
+
#if defined(ENABLE_IPV6) && defined(USE_ARES)
#error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild"