mirror of
https://repo.or.cz/socat.git
synced 2025-07-11 06:22:58 +00:00
Again ported to NetBSD
This commit is contained in:
parent
b5b9ee0031
commit
2ab4b232fc
6 changed files with 43 additions and 3 deletions
4
xio-ip.c
4
xio-ip.c
|
@ -216,9 +216,11 @@ int xiogetaddrinfo(const char *node, const char *service,
|
|||
if (family == PF_UNSPEC) family = PF_INET6;
|
||||
#endif /* WITH_IP6 */
|
||||
}
|
||||
#if HAVE_GETADDRINFO
|
||||
#ifdef AI_ADDRCONFIG
|
||||
if (family == 0)
|
||||
hints.ai_flags |= AI_ADDRCONFIG;
|
||||
#if HAVE_GETADDRINFO
|
||||
#endif
|
||||
if (node != NULL || service != NULL) {
|
||||
struct addrinfo *record;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue