Skip to content

Commit b4654dc

Browse files
authored
Merge pull request #2 from smurfy/fix-osx-compile
Fix compile on osx
2 parents 4caa18f + 08ae456 commit b4654dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsonrpccpp/server/connectors/linuxtcpsocketserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bool LinuxTcpSocketServer::StartListening()
6363
inet_aton(this->ipToBind.c_str(), &(this->address.sin_addr));
6464
this->address.sin_port = htons(this->port);
6565

66-
if(bind(this->socket_fd, reinterpret_cast<struct sockaddr *>(&(this->address)), sizeof(struct sockaddr_in)) != 0)
66+
if(::bind(this->socket_fd, reinterpret_cast<struct sockaddr *>(&(this->address)), sizeof(struct sockaddr_in)) != 0)
6767
{
6868
return false;
6969
}

0 commit comments

Comments
 (0)