projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6951110
)
TCP_* is in the reserved namespace for tcp.h; make use of that
author
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Sep 2012 03:56:32 +0000
(23:56 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Sep 2012 03:56:32 +0000
(23:56 -0400)
include/netinet/tcp.h
patch
|
blob
|
history
diff --git
a/include/netinet/tcp.h
b/include/netinet/tcp.h
index 5049dd915d5341acaf7c9bf7f282b8ccc1b96ccb..6c2d28912597bb9c5d21ca8829ed930cbbcb5545 100644
(file)
--- a/
include/netinet/tcp.h
+++ b/
include/netinet/tcp.h
@@
-4,9
+4,6
@@
#include <features.h>
#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
@@
-20,6
+17,10
@@
#define TCP_QUICKACK 12
#define TCP_CONGESTION 13
#define TCP_MD5SIG 14
+
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+#include <sys/types.h>
+#include <sys/socket.h>
#endif
#endif