summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-05-10 10:56:26 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-05-10 11:01:20 +0200
commitb25a51fa5915df87f31a0cc0459cd9f05e17f540 (patch)
tree1b22ab8550889f1270d938aa084ee9b792265409 /built_in.h
parent977a0f81d1e7dcd746fb22b3f972578e996e86d3 (diff)
all: use <net/*> headers instead of <linux/*> where possible
The musl libc headers redefine some of the structs in linux/if_arp.h and linux/if_ether.h, leading to compilation errors. Fix those by using the libc provided versions of these headers and provide compatibility defines for those that aren't present in older glibc versions. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/built_in.h b/built_in.h
index d10579a..bb24746 100644
--- a/built_in.h
+++ b/built_in.h
@@ -382,10 +382,26 @@ static inline u64 cpu_to_le64(u64 val)
# define PACKET_QDISC_BYPASS 20
#endif
+#ifndef ARPHRD_CAN
+# define ARPHRD_CAN 280
+#endif
+
#ifndef ARPHRD_IEEE802154_MONITOR
# define ARPHRD_IEEE802154_MONITOR 805
#endif
+#ifndef ARPHRD_PHONET
+# define ARPHRD_PHONET 820
+#endif
+
+#ifndef ARPHRD_PHONET_PIPE
+# define ARPHRD_PHONET_PIPE 821
+#endif
+
+#ifndef ARPHRD_CAIF
+# define ARPHRD_CAIF 822
+#endif
+
#ifndef ARPHRD_IP6GRE
# define ARPHRD_IP6GRE 823
#endif