From 933527fc772843ad8378968f14f51deccf4d91c3 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 13 Jul 2009 13:29:00 +0200 Subject: [PATCH] Put #ifdef around AI_NUMERICSERV which doesn't seem std --- libssh/connect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libssh/connect.c b/libssh/connect.c index 52c48c86..91ec0297 100644 --- a/libssh/connect.c +++ b/libssh/connect.c @@ -155,7 +155,9 @@ static int getai(SSH_SESSION *session, const char *host, int port, struct addrin } else { snprintf(s_port, sizeof(s_port), "%hu", port); service = s_port; +#ifdef AI_NUMERICSERV hints.ai_flags=AI_NUMERICSERV; +#endif } #ifdef HAVE_REGCOMP if(regexec(ip_regex,host,0,NULL,0) == 0){