Skip to content
Snippets Groups Projects
Commit 3a4989a5 authored by deuce's avatar deuce
Browse files

Blindly attempt to fix OpenBSD build by assuming that AI_ADDRCONFIG is not

defined on that platform.
parent fe105410
No related branches found
No related tags found
No related merge requests found
......@@ -418,7 +418,10 @@ int conn_socket_connect(struct bbslist *bbs)
hints.ai_flags=PF_UNSPEC;
hints.ai_socktype=SOCK_STREAM;
hints.ai_protocol=IPPROTO_TCP;
hints.ai_flags=AI_ADDRCONFIG|AI_NUMERICSERV;
hints.ai_flags=AI_NUMERICSERV;
#ifdef AI_ADDRCONFIG
hints.ai_flags|=AI_ADDRCONFIG;
#endif
sprintf(portnum, "%hu", bbs->port);
if(getaddrinfo(bbs->addr, portnum, &hints, &res)!=0) {
failcode=FAILURE_RESOLVE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment