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 | 138014acb68af61a997156dd07adb6313402e7f3 (patch) | |
tree | 129d277486d0a56f72df533bd78150b1739d265a /src/compat/compat.h | |
parent | wg-quick.8: add policy routing example (diff) | |
download | wireguard-monolithic-historical-138014acb68af61a997156dd07adb6313402e7f3.tar.xz wireguard-monolithic-historical-138014acb68af61a997156dd07adb6313402e7f3.zip |
allowedips: remove ifdefs in favor of IS_ENABLED
Diffstat (limited to 'src/compat/compat.h')
-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> |