1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 09:10:37 +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:
Fellippe Heitor 2021-11-05 01:37:51 -03:00 committed by GitHub
commit f795828806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}