aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-03-09 13:26:48 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-03-09 13:27:05 +0100
commit3102d284b5cdb7eb1faede92a357c28b385093e6 (patch)
treec455ce1c7117bb43e07da1b217871527b8b7b2f5
parentcompat: stable kernels are now receiving b87b619 (diff)
downloadwireguard-monolithic-historical-3102d284b5cdb7eb1faede92a357c28b385093e6.tar.xz
wireguard-monolithic-historical-3102d284b5cdb7eb1faede92a357c28b385093e6.zip
compat: silence warning on frankenkernels
Some Android 3.18 devices backport this macro.
-rw-r--r--src/compat/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 86dcfd2..ff6d2f1 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -56,8 +56,11 @@
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0)
+#include <linux/rcupdate.h>
+#ifndef RCU_LOCKDEP_WARN
#define RCU_LOCKDEP_WARN(cond, message) rcu_lockdep_assert(!(cond), message)
#endif
+#endif
#if ((LINUX_VERSION_CODE > KERNEL_VERSION(3, 19, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 6)) || \
(LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 12) && LINUX_VERSION_CODE > KERNEL_VERSION(3, 17, 0)) || \