aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-09-13 15:08:24 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-13 15:08:24 -0400
commit49d5a69653dc7472f176e48ae28cba716948e5c5 (patch)
tree8918d3038e98c89b42cf0db340da7aa51c513570 /src/compat
parentKbuild: squelch warnings for stack limit on broken kernel configs (diff)
downloadwireguard-monolithic-historical-49d5a69653dc7472f176e48ae28cba716948e5c5.tar.xz
wireguard-monolithic-historical-49d5a69653dc7472f176e48ae28cba716948e5c5.zip
compat: support rhel/centos 7.7
Diffstat (limited to '')
-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 8979639..34d6d9e 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -90,7 +90,7 @@
(LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 27) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)) || \
(LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 8) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)) || \
(LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 40) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)) || \
- (LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 54))) && !defined(ISUBUNTU1404)
+ (LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 54))) && !defined(ISUBUNTU1404) && (!defined(ISRHEL7) || RHEL_MINOR < 7) /* TODO: remove < 7 workaround once CentOS 7.7 comes out. */
#include <linux/if.h>
#include <net/ip_tunnels.h>
#define IP6_ECN_set_ce(a, b) IP6_ECN_set_ce(b)