commit | ef7c95b8ab96897db09faec974c2547305887cbe | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Apr 07 11:16:35 2016 -0700 |
committer | Josh Gao <jmgao@google.com> | Thu Apr 07 11:16:35 2016 -0700 |
tree | c003d3380567dd9af462762f3966d57ef570be60 | |
parent | 70856fb6ecc6c2d33e8de34df1502f7fad15aa62 [diff] |
Make the network headers compile standalone. Bug: http://b/28067717 Change-Id: I0f69c6cba0eb0df2fe68f458ba5aa81fe8e6434c
diff --git a/libc/include/net/if_ieee1394.h b/libc/include/net/if_ieee1394.h index 5a61581..2f8a7c3 100644 --- a/libc/include/net/if_ieee1394.h +++ b/libc/include/net/if_ieee1394.h
@@ -39,6 +39,8 @@ #ifndef _NET_IF_IEEE1394_H_ #define _NET_IF_IEEE1394_H_ +#include <sys/types.h> + /* hardware address information for arp / nd */ struct ieee1394_hwaddr { u_int8_t iha_uid[8]; /* node unique ID */
diff --git a/libc/include/netinet/in_systm.h b/libc/include/netinet/in_systm.h index ff53fb7..7e474ba 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 aa816c2..aa89186 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 5601645..e95cc09 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