mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-28 11:17:46 +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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
if (sockfd == -1) continue;
|
||||
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);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue