OSX build fix

This commit is contained in:
Chris Marsh
2017-08-21 12:51:38 -07:00
parent 4dcb4afd2e
commit 5882823830
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ bool BaseConnection::Open()
fcntl(self->sock, F_SETFL, O_NONBLOCK);
#ifdef SO_NOSIGPIPE
int optval = 1;
setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &optval, sizeof(optval));
setsockopt(self->sock, SOL_SOCKET, SO_NOSIGPIPE, &optval, sizeof(optval));
#endif
for (int pipeNum = 0; pipeNum < 10; ++pipeNum) {