mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
fix cast for some systems which are broken due to absense of socklen_t, therefore now use curl_socklen_t.
This commit is contained in:
parent
0cf6721898
commit
1cb921b7f3
@ -31,7 +31,8 @@ char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size);
|
|||||||
#ifdef HAVE_ARPA_INET_H
|
#ifdef HAVE_ARPA_INET_H
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#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
|
||||||
|
|
||||||
#endif /* __INET_NTOP_H */
|
#endif /* __INET_NTOP_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user