aboutsummaryrefslogtreecommitdiff
path: root/libc/include/netinet
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2016-04-07 11:16:35 -0700
committerJosh Gao <jmgao@google.com>2016-04-07 11:16:35 -0700
commitef7c95b8ab96897db09faec974c2547305887cbe (patch)
treec003d3380567dd9af462762f3966d57ef570be60 /libc/include/netinet
parent70856fb6ecc6c2d33e8de34df1502f7fad15aa62 (diff)
downloadbionic-ef7c95b8ab96897db09faec974c2547305887cbe.tar.gz
Make the network headers compile standalone.
Bug: http://b/28067717 Change-Id: I0f69c6cba0eb0df2fe68f458ba5aa81fe8e6434c
Diffstat (limited to 'libc/include/netinet')
-rw-r--r--libc/include/netinet/in_systm.h2
-rw-r--r--libc/include/netinet/ip6.h4
-rw-r--r--libc/include/netinet/tcp.h2
3 files changed, 8 insertions, 0 deletions
diff --git a/libc/include/netinet/in_systm.h b/libc/include/netinet/in_systm.h
index ff53fb7b9..7e474ba0c 100644
--- a/libc/include/netinet/in_systm.h
+++ b/libc/include/netinet/in_systm.h
@@ -34,6 +34,8 @@
#ifndef _NETINET_IN_SYSTM_H_
#define _NETINET_IN_SYSTM_H_
+#include <sys/types.h>
+
/*
* Miscellaneous internetwork
* definitions for kernel.
diff --git a/libc/include/netinet/ip6.h b/libc/include/netinet/ip6.h
index aa816c241..aa89186bd 100644
--- a/libc/include/netinet/ip6.h
+++ b/libc/include/netinet/ip6.h
@@ -64,6 +64,10 @@
#ifndef _NETINET_IP6_H_
#define _NETINET_IP6_H_
+#include <sys/types.h>
+
+#include <linux/in6.h>
+
/*
* Definition for internet protocol version 6.
* RFC 2460
diff --git a/libc/include/netinet/tcp.h b/libc/include/netinet/tcp.h
index 5601645ee..e95cc0990 100644
--- a/libc/include/netinet/tcp.h
+++ b/libc/include/netinet/tcp.h
@@ -29,6 +29,8 @@
#ifndef _NETINET_TCP_H
#define _NETINET_TCP_H
+#include <sys/cdefs.h>
+
#include <linux/tcp.h>
__BEGIN_DECLS