summaryrefslogtreecommitdiffhomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-04-09 14:30:05 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-04-09 14:30:05 +0200
commit175cef34995822ec70a483ed3cef4f355d853dc3 (patch)
treed4486c2078d588ce95e1b2720ff44f82bb0b516c /src/compat
parent486bd5a9e9b7b901b54bd309cf930ead8ea56ca7 (diff)
compat: warn on < 4.1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index d936582..0a20751 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -9,6 +9,8 @@
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
#error "WireGuard requires Linux >= 3.10"
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
+#warning "WireGuard support for kernels < 4.1 should work but is slightly experimental."
#endif
/* These conditionals can't be enforced by an out of tree module very easily,