aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-09 22:52:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-09 22:52:50 +0000
commitce5805a955c5a79d85792caad47594987f0e0b26 (patch)
treee22b4801edb6a5448aa38730d311ccace9eb2be3 /lib/setup.h
parentdad0715d7907e8a64f2cccf1d21b648018f11f41 (diff)
Use curl_socket_t instead of int for holding sockets. The typedefs and
defines are in setup.h.
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h8
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)