Skip to content

Commit 3acf8f9

Browse files
authored
Minimal support for building on macOS (#341)
1 parent d0d9365 commit 3acf8f9

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)