mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2025-06-30 22:18:29 -04:00
Bah. That'll teach me to trust the manpage... let's try something which might
be marginally more portable. svn path=/trunk/net/; revision=4279
This commit is contained in:
parent
6bc46604b9
commit
6780ececbc
@ -205,7 +205,7 @@ int sock_set_nodelay(sock_t sock)
|
|||||||
{
|
{
|
||||||
int nodelay = 1;
|
int nodelay = 1;
|
||||||
|
|
||||||
return setsockopt(sock, SOL_TCP, TCP_NODELAY, (void *)nodelay,
|
return setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)nodelay,
|
||||||
sizeof(int));
|
sizeof(int));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user