From 07a03cbc8d186f985bcccede99fc3547f23868d8 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 6 Jul 2017 16:41:23 +0200 Subject: device: cleanup register_netdev logic --- src/compat/compat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/compat') 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 +#define priv_destructor destructor +#endif + /* https://lkml.org/lkml/2017/6/23/790 */ #if IS_ENABLED(CONFIG_NF_CONNTRACK) #include -- cgit v1.2.3-59-g8ed1b