aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index a4140af76..396a0e0f2 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -86,23 +86,6 @@ extern "C" {
typedef void CURL;
/*
- * Windows build targets have socklen_t definition in
- * ws2tcpip.h but some versions of ws2tcpip.h do not
- * have the definition. It seems that when the socklen_t
- * definition is missing from ws2tcpip.h the definition
- * for INET_ADDRSTRLEN is also missing, and that when one
- * definition is present the other one also is available.
- */
-
-#if defined(WIN32) && !defined(HAVE_SOCKLEN_T)
-# if ( defined(_MSC_VER) && !defined(INET_ADDRSTRLEN) ) || \
- (!defined(_MSC_VER) && !defined(_WS2TCPIP_H_) && !defined(_WS2TCPIP_H) )
-# define socklen_t int
-# define HAVE_SOCKLEN_T
-# endif
-#endif
-
-/*
* Decorate exportable functions for Win32 DLL linking.
* This avoids using a .def file for building libcurl.dll.
*/
@@ -274,7 +257,9 @@ struct curl_sockaddr {
int family;
int socktype;
int protocol;
- socklen_t addrlen;
+ unsigned int addrlen; /* addrlen was a socklen_t type before 7.17.2 but it
+ turned really ugly and painful on the systems that
+ lack this type */
struct sockaddr addr;
};