diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-01-28 16:21:10 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-01-28 16:32:58 +0100 |
commit | 6af0b4d1c1df730bcd3d8f0ec9b020108af18c6f (patch) | |
tree | ecad266a9a87d3850f3fe404eaf5fae0a5194372 | |
parent | 1fd5305af2bc5c9e42ffd55a7742d64d83d65d1a (diff) |
compat: refuse to build on >= 5.6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/compat/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <linux/skbuff.h> #define headers_end headers_start |