Use bind from global namespace
This commit is contained in:
parent
9a56221566
commit
ac62bf7f22
@ -44,7 +44,7 @@ remote_bitbang_t::remote_bitbang_t(uint16_t port) :
|
||||
addr.sin_addr.s_addr = INADDR_ANY;
|
||||
addr.sin_port = htons(port);
|
||||
|
||||
if (bind(socket_fd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {
|
||||
if (::bind(socket_fd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {
|
||||
fprintf(stderr, "remote_bitbang failed to bind socket: %s (%d)\n",
|
||||
strerror(errno), errno);
|
||||
abort();
|
||||
|
Loading…
Reference in New Issue
Block a user