OSDN Git Service

Make the network headers compile standalone.
authorJosh Gao <jmgao@google.com>
Thu, 7 Apr 2016 18:16:35 +0000 (11:16 -0700)
committerJosh Gao <jmgao@google.com>
Thu, 7 Apr 2016 18:16:35 +0000 (11:16 -0700)
Bug: http://b/28067717
Change-Id: I0f69c6cba0eb0df2fe68f458ba5aa81fe8e6434c

libc/include/net/if_ieee1394.h
libc/include/netinet/in_systm.h
libc/include/netinet/ip6.h
libc/include/netinet/tcp.h

index 5a61581..2f8a7c3 100644 (file)
@@ -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 */
index ff53fb7..7e474ba 100644 (file)
@@ -34,6 +34,8 @@
 #ifndef _NETINET_IN_SYSTM_H_
 #define _NETINET_IN_SYSTM_H_
 
+#include <sys/types.h>
+
 /*
  * Miscellaneous internetwork
  * definitions for kernel.
index aa816c2..aa89186 100644 (file)
 #ifndef _NETINET_IP6_H_
 #define _NETINET_IP6_H_
 
+#include <sys/types.h>
+
+#include <linux/in6.h>
+
 /*
  * Definition for internet protocol version 6.
  * RFC 2460
index 5601645..e95cc09 100644 (file)
@@ -29,6 +29,8 @@
 #ifndef _NETINET_TCP_H
 #define _NETINET_TCP_H
 
+#include <sys/cdefs.h>
+
 #include <linux/tcp.h>
 
 __BEGIN_DECLS