mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Put #ifdef around AI_NUMERICSERV which doesn't seem std
This commit is contained in:
@@ -155,7 +155,9 @@ static int getai(SSH_SESSION *session, const char *host, int port, struct addrin
|
|||||||
} else {
|
} else {
|
||||||
snprintf(s_port, sizeof(s_port), "%hu", port);
|
snprintf(s_port, sizeof(s_port), "%hu", port);
|
||||||
service = s_port;
|
service = s_port;
|
||||||
|
#ifdef AI_NUMERICSERV
|
||||||
hints.ai_flags=AI_NUMERICSERV;
|
hints.ai_flags=AI_NUMERICSERV;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef HAVE_REGCOMP
|
#ifdef HAVE_REGCOMP
|
||||||
if(regexec(ip_regex,host,0,NULL,0) == 0){
|
if(regexec(ip_regex,host,0,NULL,0) == 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user