batman-adv: Fix build with kernel 5.15.38
[feed/routing.git] / batman-adv / src / compat-hacks.h
index 8b8ac53b84d578897d9b5f38167455febbc5b115..69389558359ff7a9d54314245817f3da40bb0422 100644 (file)
@@ -61,6 +61,8 @@ static inline void batadv_eth_hw_addr_set(struct net_device *dev,
 
 #if LINUX_VERSION_IS_LESS(5, 18, 0)
 
+#include <linux/netdevice.h>
+
 static inline int batadv_netif_rx(struct sk_buff *skb)
 {
        if (in_interrupt())