diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-06 16:41:23 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-06 18:12:33 +0200 |
commit | 07a03cbc8d186f985bcccede99fc3547f23868d8 (patch) | |
tree | 0c385e5ac72af12492167c2191ad2fe4cccfb0d3 /src/compat | |
parent | compat: priv_destructor got backported (diff) | |
download | wireguard-monolithic-historical-07a03cbc8d186f985bcccede99fc3547f23868d8.tar.xz wireguard-monolithic-historical-07a03cbc8d186f985bcccede99fc3547f23868d8.zip |
device: cleanup register_netdev logic
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 38803b2..8d9038a 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -335,6 +335,11 @@ static inline void kvfree(const void *addr) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9) +#include <linux/netdevice.h> +#define priv_destructor destructor +#endif + /* https://lkml.org/lkml/2017/6/23/790 */ #if IS_ENABLED(CONFIG_NF_CONNTRACK) #include <linux/ip.h> |