From 92926ffbfe1bb1a3f9056f952fb2a07a9f5476d7 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 12 Dec 2018 19:06:32 +0100 Subject: compat: account for Clang CFI --- src/compat/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compat/compat.h') 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 #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) -- cgit v1.2.3-59-g8ed1b