aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-01-28 16:21:10 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-01-28 16:32:58 +0100
commit6af0b4d1c1df730bcd3d8f0ec9b020108af18c6f (patch)
treeecad266a9a87d3850f3fe404eaf5fae0a5194372
parentqemu: bump kernel (diff)
downloadwireguard-linux-compat-6af0b4d1c1df730bcd3d8f0ec9b020108af18c6f.tar.xz
wireguard-linux-compat-6af0b4d1c1df730bcd3d8f0ec9b020108af18c6f.zip
compat: refuse to build on >= 5.6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/compat/compat.h4
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