about summary refs log tree commit diff
path: root/include/netinet
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-07 23:56:32 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-07 23:56:32 -0400
commit3cd084bb03aabd303777e866ca30b320194ccbd7 (patch)
tree8157f0ded5e108e8409381ddce7c81a2390392ad /include/netinet
parent695111036821f73870d8d7b4ba072368fc8f7941 (diff)
downloadmusl-3cd084bb03aabd303777e866ca30b320194ccbd7.tar.gz
musl-3cd084bb03aabd303777e866ca30b320194ccbd7.tar.xz
musl-3cd084bb03aabd303777e866ca30b320194ccbd7.zip
TCP_* is in the reserved namespace for tcp.h; make use of that
Diffstat (limited to 'include/netinet')
-rw-r--r--include/netinet/tcp.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h
index 5049dd91..6c2d2891 100644
--- 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