summaryrefslogtreecommitdiffstats
path: root/libc/include/net/if.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-16 16:53:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-12-16 16:53:25 +0000
commit3a50b65fd152b4a50dc15ec33f19080e8724b02c (patch)
treeb0ccd2c85442f644f88ceecbe2a762a5dc600585 /libc/include/net/if.h
parent16ea2790a84b1e65dc1e485c3ec494de787cc490 (diff)
parentbadd7e1a58fc2ce704fd8fc2a1f335bd30a67542 (diff)
downloadbionic-3a50b65fd152b4a50dc15ec33f19080e8724b02c.zip
bionic-3a50b65fd152b4a50dc15ec33f19080e8724b02c.tar.gz
bionic-3a50b65fd152b4a50dc15ec33f19080e8724b02c.tar.bz2
Merge "Fix <net/route.h>."
Diffstat (limited to 'libc/include/net/if.h')
-rw-r--r--libc/include/net/if.h6
1 files changed, 6 insertions, 0 deletions
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 unsigned int if_nametoindex(const char *);
extern char* if_indextoname(unsigned ifindex, char *ifname);
__END_DECLS
+
+#endif