From 6af0b4d1c1df730bcd3d8f0ec9b020108af18c6f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 28 Jan 2020 16:21:10 +0100 Subject: compat: refuse to build on >= 5.6 Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compat/compat.h b/src/compat/compat.h index 96f3556..c18978e 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -38,6 +38,10 @@ #error "WireGuard requires Linux >= 3.10" #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0) +#error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required." +#endif + #if defined(ISRHEL7) #include #define headers_end headers_start -- cgit v1.2.3-59-g8ed1b