aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-07-10 04:00:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-07-20 03:37:39 +0200
commit508faa541275958ccef5c46d72e2c932dcd963bc (patch)
tree9ab581ca7114145997e6e413345260bcbce11e9e /src/compat/compat.h
parentsend: orphan skbs when buffering longterm (diff)
downloadwireguard-linux-compat-508faa541275958ccef5c46d72e2c932dcd963bc.tar.xz
wireguard-linux-compat-508faa541275958ccef5c46d72e2c932dcd963bc.zip
device: support 4.13's extact newlink param
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index a80039d..524fe6f 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -342,6 +342,10 @@ static inline void kvfree_ours(const void *addr)
#define priv_destructor destructor
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 0)
+#define newlink(a,b,c,d,e) newlink(a,b,c,d)
+#endif
+
/* https://lkml.org/lkml/2017/6/23/790 */
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
#include <linux/ip.h>