diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-05 22:03:35 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-06 00:48:12 +0200 |
commit | 44f0a766097d862e4e2d225d1e33986807baf37f (patch) | |
tree | d983fd46f3a26814bb7c8ba817306ea55779301b /src/compat | |
parent | 2884f04e0851c83e7a9fe725e56fe28a17f9522e (diff) |
allowedips: remove ifdefs in favor of IS_ENABLED
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <linux/ip.h> |