diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-09 14:30:05 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-09 14:30:05 +0200 |
commit | c991a23d9852d1b1f8c58e40fe8ddcda08704cd1 (patch) | |
tree | b575af504a170aa18161ef6668fdb2fd65bd387b /src | |
parent | compat: careful with destructors (diff) | |
download | wireguard-monolithic-historical-c991a23d9852d1b1f8c58e40fe8ddcda08704cd1.tar.xz wireguard-monolithic-historical-c991a23d9852d1b1f8c58e40fe8ddcda08704cd1.zip |
compat: warn on < 4.1
Diffstat (limited to 'src')
-rw-r--r-- | src/compat/compat.h | 2 |
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, |