mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-01 09:10:37 +00:00
Added global scope operator :: to the socket bind call to prevent clashes with <functional> std::bind in some builds
This commit is contained in:
parent
9ae71cda5f
commit
8f0c08e2ec
|
@ -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