diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-03 03:46:00 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-03 04:12:46 +0200 |
commit | 7d858dd1d15792a56d4b1ab6eb72361d122f3b98 (patch) | |
tree | 9b0d2dfa2b4704edd7b1009a995fde785c49d048 /src | |
parent | receive: cleanup error handlers (diff) | |
download | wireguard-monolithic-historical-7d858dd1d15792a56d4b1ab6eb72361d122f3b98.tar.xz wireguard-monolithic-historical-7d858dd1d15792a56d4b1ab6eb72361d122f3b98.zip |
compat: support OpenSUSE's backports
Diffstat (limited to 'src')
-rw-r--r-- | src/compat/compat.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 562c050..539b4bf 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -18,6 +18,11 @@ #define ISUBUNTU1404 #endif #endif +#ifdef CONFIG_SUSE_KERNEL +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) +#define ISOPENSUSE42 +#endif +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) #error "WireGuard requires Linux >= 3.10" @@ -88,7 +93,7 @@ static const struct ipv6_stub_type *ipv6_stub = &ipv6_stub_impl; #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) && IS_ENABLED(CONFIG_IPV6) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) && IS_ENABLED(CONFIG_IPV6) && !defined(ISOPENSUSE42) #include <net/addrconf.h> static inline bool ipv6_mod_enabled(void) { |