commit | badd7e1a58fc2ce704fd8fc2a1f335bd30a67542 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Dec 15 18:47:14 2014 -0800 |
committer | Elliott Hughes <enh@google.com> | Mon Dec 15 18:47:14 2014 -0800 |
tree | b149a0df132d1eb4fdd47077cdd4564a256f796f | |
parent | ad01c9831918ecae815db2406022ef69e74f6e6d [diff] [blame] |
Fix <net/route.h>. Previously it couldn't be included alone. Also add a header and include guard, and fix its siblings' include guards. Bug: https://code.google.com/p/android/issues/detail?id=82638 Change-Id: I32139a4bda0a6b015508a2319bf4e1a1453345f2
diff --git a/libc/include/net/if.h b/libc/include/net/if.h index f36f37e..0efbf7f 100644 --- a/libc/include/net/if.h +++ b/libc/include/net/if.h
@@ -26,9 +26,13 @@ * SUCH DAMAGE. */ +#ifndef _NET_IF_H_ +#define _NET_IF_H_ + #include <sys/socket.h> #include <linux/if.h> #include <sys/cdefs.h> + #ifndef IF_NAMESIZE #define IF_NAMESIZE IFNAMSIZ #endif @@ -42,3 +46,5 @@ extern char* if_indextoname(unsigned ifindex, char *ifname); __END_DECLS + +#endif