From c991a23d9852d1b1f8c58e40fe8ddcda08704cd1 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 9 Apr 2017 14:30:05 +0200 Subject: compat: warn on < 4.1 --- src/compat/compat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compat') 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, -- cgit v1.2.3-59-g8ed1b