mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 18:10:24 +00:00
Merge pull request #209 from phillvancejr/development
Disambiguate bind call in libqb.cpp to allow building on OSX High Sierra 10.13
This commit is contained in:
commit
f795828806
|
@ -21672,7 +21672,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
|
||||||
sockfd = socket(p->ai_family, p->ai_socktype, p->ai_protocol);
|
sockfd = socket(p->ai_family, p->ai_socktype, p->ai_protocol);
|
||||||
if (sockfd == -1) continue;
|
if (sockfd == -1) continue;
|
||||||
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int));
|
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int));
|
||||||
if (bind(sockfd, p->ai_addr, p->ai_addrlen) == -1) {
|
if (::bind(sockfd, p->ai_addr, p->ai_addrlen) == -1) {
|
||||||
close(sockfd);
|
close(sockfd);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue