From 138014acb68af61a997156dd07adb6313402e7f3 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 5 Oct 2018 22:03:35 +0200 Subject: allowedips: remove ifdefs in favor of IS_ENABLED --- src/compat/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compat') diff --git a/src/compat/compat.h b/src/compat/compat.h index 8c679a1..8c366f5 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -755,6 +755,10 @@ static __must_check inline bool may_use_simd(void) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) +#define hlist_add_behind(a, b) hlist_add_after(b, a) +#endif + /* https://lkml.kernel.org/r/20170624021727.17835-1-Jason@zx2c4.com */ #if IS_ENABLED(CONFIG_NF_CONNTRACK) #include -- cgit v1.2.3-59-g8ed1b