diff options
author | Bruno Wolff III <bruno@wolff.to> | 2019-03-14 13:25:34 -0500 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-14 12:49:42 -0600 |
commit | df681f4afe2e8a50cc2c1ee3af27b1f42c070472 (patch) | |
tree | a2343afff2560e6c5980ec112ac98c95626699b9 /src/compat | |
parent | tools: add support for Haiku (diff) | |
download | wireguard-monolithic-historical-df681f4afe2e8a50cc2c1ee3af27b1f42c070472.tar.xz wireguard-monolithic-historical-df681f4afe2e8a50cc2c1ee3af27b1f42c070472.zip |
compat: nf_nat_core.h was removed upstream
In d2c5c103b133 ("netfilter: nat: remove nf_nat_l3proto.h and
nf_nat_core.h").
Signed-off-by: Bruno Wolff III <bruno@wolff.to>
Diffstat (limited to '')
-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 7a61e4c..2dcdbae 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -792,7 +792,9 @@ struct __kernel_timespec { #include <net/ipv6.h> #include <net/icmp.h> #include <net/netfilter/nf_conntrack.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) #include <net/netfilter/nf_nat_core.h> +#endif static inline void new_icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info) { enum ip_conntrack_info ctinfo; |