diff options
-rw-r--r-- | src/listen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/listen.c b/src/listen.c index 0e2dd6611..0e3467364 100644 --- a/src/listen.c +++ b/src/listen.c @@ -190,7 +190,10 @@ static void parseListenConfigParam(unsigned int port, ConfigParam * param) DEBUG("binding to address for %s\n", param->value); memset(&hints, 0, sizeof(hints)); - hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG; + hints.ai_flags = AI_PASSIVE; +#ifdef AI_ADDRCONFIG + hints.ai_flags |= AI_ADDRCONFIG; +#endif hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; |