diff options
Diffstat (limited to 'common/sock-any.c')
-rw-r--r-- | common/sock-any.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/sock-any.c b/common/sock-any.c index 581ef5b..5dc97fc 100644 --- a/common/sock-any.c +++ b/common/sock-any.c @@ -337,7 +337,9 @@ sock_any_pton_n (const char *string, struct sockaddr_any *addrs, int n_addrs, in num = n_addrs; memset (&hints, 0, sizeof (hints)); hints.ai_family = PF_UNSPEC; +#ifdef AI_NUMERICSERV hints.ai_flags = AI_NUMERICSERV; +#endif /* * Not actually limitted to these, just need to specify these |