[B.A.T.M.A.N.] [PATCH v2 25/26] batman-adv: packet.h, add some missing includes

Markus Pargmann
2014-12-26T11:41:42Z

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
packet.h | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/packet.h b/packet.h
index facd1feddd4e..5fd0d814b6de 100644
--- a/packet.h
+++ b/packet.h
@@ -18,6 +18,11 @@
#ifndef _NET_BATMAN_ADV_PACKET_H_
#define _NET_BATMAN_ADV_PACKET_H_

+#ifdef __KERNEL__
+#include <linux/bitops.h>
+#include <uapi/linux/if_ether.h>
+#endif /* __KERNEL__ */
+
/**
* enum batadv_packettype - types for batman-adv encapsulated packets
* @BATADV_IV_OGM: originator messages for B.A.T.M.A.N. IV
--
2.1.3