1
0
Fork 0

Merge pull request #1234 from grebe/bindFixup

Use bind from global namespace
This commit is contained in:
Henry Cook 2018-02-09 15:59:51 -08:00 committed by GitHub
commit 1bfdfacda0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();