summaryrefslogtreecommitdiff
path: root/include/uapi/linux/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/tcp.h')
-rw-r--r--include/uapi/linux/tcp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h
index 377f1e59411d..7b6e5c289847 100644
--- a/include/uapi/linux/tcp.h
+++ b/include/uapi/linux/tcp.h
@@ -14,13 +14,15 @@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
-#ifndef _UAPI_LINUX_TCP_H
-#define _UAPI_LINUX_TCP_H
+#ifndef _LINUX_TCP_H
+#define _LINUX_TCP_H
#include <linux/types.h>
+#include <linux/libc-compat.h>
#include <asm/byteorder.h>
#include <linux/socket.h>
+#if __UAPI_DEF_TCPHDR
struct tcphdr {
__be16 source;
__be16 dest;
@@ -55,6 +57,7 @@ struct tcphdr {
__sum16 check;
__be16 urg_ptr;
};
+#endif
/*
* The union cast uses a gcc extension to avoid aliasing problems
@@ -199,4 +202,4 @@ struct tcp_md5sig {
__u8 tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* key (binary) */
};
-#endif /* _UAPI_LINUX_TCP_H */
+#endif /* _LINUX_TCP_H */