diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-04 03:38:54 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-04 03:38:54 +0100 |
commit | c62e2b8f94734246b5381d67186d80b1d7d82e64 (patch) | |
tree | 516cd07c35b3a278f11e6a71f22c88c03b21cf80 /src/peer.h | |
parent | socket: use dst_cache instead of handrolled cache (diff) | |
download | wireguard-monolithic-historical-c62e2b8f94734246b5381d67186d80b1d7d82e64.tar.xz wireguard-monolithic-historical-c62e2b8f94734246b5381d67186d80b1d7d82e64.zip |
compat: stub out dst_cache for old kernels
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -10,7 +10,9 @@ #include <linux/netfilter.h> #include <linux/spinlock.h> #include <linux/kref.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) #include <net/dst_cache.h> +#endif struct wireguard_device; |