projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use memcmp instead of str[n]cmp for temp function XXXXXX checking
[musl]
/
include
/
netinet
/
tcp.h
diff --git
a/include/netinet/tcp.h
b/include/netinet/tcp.h
index
797ce68
..
f0fc125
100644
(file)
--- a/
include/netinet/tcp.h
+++ b/
include/netinet/tcp.h
@@
-1,10
+1,9
@@
#ifndef _NETINET_TCP_H
#define _NETINET_TCP_H
#ifndef _NETINET_TCP_H
#define _NETINET_TCP_H
+#include <features.h>
+
#define TCP_NODELAY 1
#define TCP_NODELAY 1
-#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-#include <sys/types.h>
-#include <sys/socket.h>
#define TCP_MAXSEG 2
#define TCP_CORK 3
#define TCP_KEEPIDLE 4
#define TCP_MAXSEG 2
#define TCP_CORK 3
#define TCP_KEEPIDLE 4
@@
-18,6
+17,11
@@
#define TCP_QUICKACK 12
#define TCP_CONGESTION 13
#define TCP_MD5SIG 14
#define TCP_QUICKACK 12
#define TCP_CONGESTION 13
#define TCP_MD5SIG 14
+
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+#define SOL_TCP 6
+#include <sys/types.h>
+#include <sys/socket.h>
#endif
#endif
#endif
#endif