From ba3c2e815f00e723bddebdf1f5df5adccbbb9b1c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 26 Nov 2017 13:44:36 +0100 Subject: compat: support 4.15's netlink and barrier changes Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/compat/compat.h') diff --git a/src/compat/compat.h b/src/compat/compat.h index fa155d5..16e7923 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -38,6 +38,7 @@ #define __ro_after_init __read_mostly #endif +#include #ifndef READ_ONCE #define READ_ONCE ACCESS_ONCE #endif @@ -541,6 +542,11 @@ struct _____dummy_container { char dev; }; #define getnstimeofday64 getnstimeofday #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0) +#include +#define genl_dump_check_consistent(a, b) genl_dump_check_consistent(a, b, &genl_family) +#endif + /* https://lkml.org/lkml/2017/6/23/790 */ #if IS_ENABLED(CONFIG_NF_CONNTRACK) #include -- cgit v1.2.3