diff options
author | Gunter Knauf <gk@gknw.de> | 2009-08-07 23:32:38 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2009-08-07 23:32:38 +0000 |
commit | 1cb921b7f38daebf1d21c8525735e6be58552607 (patch) | |
tree | f19e899eb74f67c173d62d340f6a75d6c1a44639 /lib | |
parent | 0cf6721898af96eb8646fc51262da1b2af128f3a (diff) |
fix cast for some systems which are broken due to absense of socklen_t, therefore now use curl_socklen_t.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/inet_ntop.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h index 3d9f1dc76..152bd7de8 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 <arpa/inet.h> #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 */ |