aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit92926ffbfe1bb1a3f9056f952fb2a07a9f5476d7 (patch)
tree97ac8fee419aa138a25d53d6a9b55300453ce277
parentchacha20: do not define unused asm function (diff)
downloadwireguard-monolithic-historical-92926ffbfe1bb1a3f9056f952fb2a07a9f5476d7.tar.xz
wireguard-monolithic-historical-92926ffbfe1bb1a3f9056f952fb2a07a9f5476d7.zip
compat: account for Clang CFI
-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)