Fix bind(2) being misinterpreted as std::bind() with libc++7 on FreeBSD.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230624
This commit is contained in:
@@ -332,7 +332,7 @@ bool Connection::try_bind( const char *addr, int port_low, int port_high )
|
||||
}
|
||||
}
|
||||
|
||||
if ( bind( sock(), &local_addr.sa, local_addr_len ) == 0 ) {
|
||||
if ( ::bind( sock(), &local_addr.sa, local_addr_len ) == 0 ) {
|
||||
set_MTU( local_addr.sa.sa_family );
|
||||
return true;
|
||||
} // else fallthrough to below code, on last iteration.
|
||||
|
||||
Reference in New Issue
Block a user