aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-07-13 13:29:00 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-07-13 13:29:00 +0200
commit933527fc772843ad8378968f14f51deccf4d91c3 (patch)
treebf5515c61663f20336f22ba247acc4b2ede9d9be /libssh
parentbf8d139b2d8baa9864a3e54d4275b39be450a2f7 (diff)
downloadlibssh-933527fc772843ad8378968f14f51deccf4d91c3.tar.gz
libssh-933527fc772843ad8378968f14f51deccf4d91c3.tar.xz
libssh-933527fc772843ad8378968f14f51deccf4d91c3.zip
Put #ifdef around AI_NUMERICSERV which doesn't seem std
Diffstat (limited to 'libssh')
-rw-r--r--libssh/connect.c2
1 files changed, 2 insertions, 0 deletions
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){