summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-12 19:06:32 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-12 19:06:32 +0100
commit25947ee638d59d4e850672e986e6f35492dfa2f7 (patch)
tree406110e3474aeb8ab90bb6ddff2b77c69387e2db /src
parent4fe37a0343f3c341ab112607736caac8746d2db1 (diff)
compat: account for Clang CFI
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/compat/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index e52f53b..c6b725d 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -793,7 +793,7 @@ static inline void new_icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32
#undef __read_mostly
#define __read_mostly
#endif
-#if defined(RAP_PLUGIN) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
+#if (defined(RAP_PLUGIN) || defined(CONFIG_CFI_CLANG)) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
#include <linux/timer.h>
#define wg_expired_retransmit_handshake(a) wg_expired_retransmit_handshake(unsigned long timer)
#define wg_expired_send_keepalive(a) wg_expired_send_keepalive(unsigned long timer)