summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-23 09:19:30 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-23 09:19:30 +0200
commit57e04d5a77cc9541ad8dcb81a134644ed2a640be (patch)
tree10fe27c2fb81286bbeb97b103f9970249998cc4a /built_in.h
parent29e7beed6e387b78c86e985e0c96e24154a01dec (diff)
built_in: fix build if ARPHRD_IEEE802154_MONITOR is undefined
Some 3.x kernel versions seem not to ship yet the definition of ARPHRD_IEEE802154_MONITOR. Add it into built_in.h to let the tools build. Reported-by: Pablo Henrique <phenrique@gmail.com> Reported-by: Tobias Kalbitz <tobias.kalbitz@gmail.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/built_in.h b/built_in.h
index a431597..9f70561 100644
--- a/built_in.h
+++ b/built_in.h
@@ -364,6 +364,10 @@ static inline u64 cpu_to_le64(u64 val)
# define POLLRDHUP 0x2000
#endif
+#ifndef ARPHRD_IEEE802154_MONITOR
+# define ARPHRD_IEEE802154_MONITOR 805
+#endif
+
#ifndef ARPHRD_IP6GRE
# define ARPHRD_IP6GRE 823
#endif