desktop: another MacOS fix

This commit is contained in:
Andrew Tridgell 2011-11-08 18:06:51 +11:00
parent 49053a9721
commit 389e2ff03e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}