From 639dff1f281722c8238788b556439e7078e0eece Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 5 Oct 2017 15:19:44 +0200 Subject: compat: RHEL backported netlink changes Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compat') diff --git a/src/compat/compat.h b/src/compat/compat.h index 5903ac1..b422c6d 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -433,7 +433,7 @@ static inline struct nlattr **genl_family_attrbuf(const struct genl_family *fami #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) && !defined(ISRHEL7) #define genl_register_family(a) genl_register_family_with_ops(a, (struct genl_ops *)genl_ops, ARRAY_SIZE(genl_ops)) #else #define genl_register_family(a) genl_register_family_with_ops(a, genl_ops) -- cgit v1.2.3