mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-24 04:09:43 +00:00
fix non-ipv6 compile
This commit is contained in:
parent
30abe97940
commit
a1042e94f1
@ -319,6 +319,9 @@ len_and_sockaddr* host2sockaddr(const char *host, int port);
|
||||
#if ENABLE_FEATURE_IPV6
|
||||
/* Same, useful if you want to force family (e.g. IPv6) */
|
||||
len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af);
|
||||
#else
|
||||
/* [we evaluate af: think about "host_and_af2sockaddr(..., af++)"] */
|
||||
#define host_and_af2sockaddr(host, port, af) ((af), host2sockaddr((host), (port)))
|
||||
#endif
|
||||
/* Assign sin[6]_port member if the socket is of corresponding type,
|
||||
* otherwise no-op. Useful for ftp.
|
||||
|
Loading…
Reference in New Issue
Block a user