mirror of
git://git.musl-libc.org/musl
synced 2025-02-05 21:41:50 +00:00
SOL_TCP is nonstandard and not in the reserved namespace
alternatively, we could define it in sys/socket.h since SO* is reserved there, and tcp.h includes sys/socket.h in extensions mode. note that SOL_TCP is simply wrong and it's only here for compatibility with broken applications. the correct argument to pass for setting TCP socket options is IPPROTO_TCP, which of course has the same value as SOL_TCP but works everywhere.
This commit is contained in:
parent
d5c164d5ff
commit
725c55528d
@ -18,9 +18,8 @@
|
||||
#define TCP_CONGESTION 13
|
||||
#define TCP_MD5SIG 14
|
||||
|
||||
#define SOL_TCP 6
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
#define SOL_TCP 6
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user