batman-adv: Prevent FTBFS when redefining ether_setup
batman-adv must make sure that ether_setup is already declared via
linux/netdevice.h before the preprocessor can patch the use of it in
batman-adv. Otherwise it is tried to also patch the declaration of
ether_setup.
Fixes: 8da2f5cbb1
("batman-adv: upgrade package to latest release 2017.2")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
77a88d5d0b
commit
187937b35a
|
@ -228,6 +228,8 @@ static inline int batadv_nla_put_u64_64bit(struct sk_buff *skb, int attrtype,
|
|||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
|
||||
|
||||
#include <linux/netdevice.h>
|
||||
|
||||
/* work around missing attribute needs_free_netdev and priv_destructor in
|
||||
* net_device
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue