From 389e2ff03ee15cc5e8ad5a37dbbb0535bf2e5cb4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Nov 2011 18:06:51 +1100 Subject: [PATCH] desktop: another MacOS fix --- libraries/Desktop/support/FastSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Desktop/support/FastSerial.cpp b/libraries/Desktop/support/FastSerial.cpp index 9f0795c5f7..60542d51b3 100644 --- a/libraries/Desktop/support/FastSerial.cpp +++ b/libraries/Desktop/support/FastSerial.cpp @@ -177,7 +177,7 @@ static void check_connection(struct tcp_state *s) if (s->fd != -1) { int one = 1; s->connected = true; - setsockopt(s->fd, SOL_TCP, TCP_NODELAY, &one, sizeof(one)); + setsockopt(s->fd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one)); printf("New connection on serial port %u\n", s->serial_port); } }