Skip to content

Commit b93c3cc

Browse files
committed
Enable building the SDK on macOS
1 parent f0ee8ca commit b93c3cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/comm/tcp_socket.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ void TCPSocket::setupOptions()
5555
{
5656
int flag = 1;
5757
ur_setsockopt(socket_fd_, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(int));
58+
59+
// macOS does not have TCP_QUICKACK
60+
#ifdef TCP_QUICKACK
5861
ur_setsockopt(socket_fd_, IPPROTO_TCP, TCP_QUICKACK, &flag, sizeof(int));
62+
#endif
5963

6064
if (recv_timeout_ != nullptr)
6165
{

0 commit comments

Comments
 (0)