Put #ifdef around AI_NUMERICSERV which doesn't seem std
Этот коммит содержится в:
родитель
bf8d139b2d
Коммит
933527fc77
@ -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){
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user