aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-05 22:03:35 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-06 00:48:12 +0200
commit44f0a766097d862e4e2d225d1e33986807baf37f (patch)
treed983fd46f3a26814bb7c8ba817306ea55779301b /src/compat/compat.h
parentcurve25519-arm: rearrange multiplications for better in-order performance (diff)
downloadwireguard-linux-compat-44f0a766097d862e4e2d225d1e33986807baf37f.tar.xz
wireguard-linux-compat-44f0a766097d862e4e2d225d1e33986807baf37f.zip
allowedips: remove ifdefs in favor of IS_ENABLED
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h4
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>