summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/netinet/tcp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h
index b8c79349..8266f21d 100644
--- a/include/netinet/tcp.h
+++ b/include/netinet/tcp.h
@@ -31,8 +31,10 @@
#define SOL_TCP 6
#include <sys/types.h>
#include <sys/socket.h>
-#include <endian.h>
+#endif
+#ifdef _GNU_SOURCE
+#include <endian.h>
struct tcphdr
{
u_int16_t source;