From 871fa7cfae38947ed52b540e16bd38c6e29002dc Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 25 Mar 2009 18:28:57 +0000 Subject: Fix build on MAC OS --- common/sock-any.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/sock-any.c') 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 -- cgit v1.2.3