diff options
author | Stef Walter <stef@memberwebs.com> | 2009-03-25 18:28:57 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-03-25 18:28:57 +0000 |
commit | 871fa7cfae38947ed52b540e16bd38c6e29002dc (patch) | |
tree | 57e02609b266ca59af41d23f6d6d6f9c44fe7745 /common | |
parent | cfc362ea26967e67d676900b7d1fa5df01988017 (diff) |
Fix build on MAC OS
Diffstat (limited to 'common')
-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 |