From: Gunter Knauf Date: Fri, 7 Aug 2009 23:32:38 +0000 (+0000) Subject: fix cast for some systems which are broken due to absense of socklen_t, therefore... X-Git-Tag: curl-7_19_6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cb921b7f38daebf1d21c8525735e6be58552607;p=thirdparty%2Fcurl.git fix cast for some systems which are broken due to absense of socklen_t, therefore now use curl_socklen_t. --- diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h index 3d9f1dc760..152bd7de8e 100644 --- a/lib/inet_ntop.h +++ b/lib/inet_ntop.h @@ -31,7 +31,8 @@ char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size); #ifdef HAVE_ARPA_INET_H #include #endif -#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,(socklen_t)size) +#define Curl_inet_ntop(af,addr,buf,size) \ + inet_ntop(af,addr,buf,(curl_socklen_t)size) #endif #endif /* __INET_NTOP_H */