From 774858d42aefc8fe583906cb889242bfa8fa10c7 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 4 Oct 2017 05:31:59 +0200 Subject: compat: conditionally redefine GENL_UNS_ADMIN_PERM Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/compat') diff --git a/src/compat/compat.h b/src/compat/compat.h index d37533b..5903ac1 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -425,8 +425,11 @@ static inline struct nlattr **genl_family_attrbuf(const struct genl_family *fami #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) +#include +#ifndef GENL_UNS_ADMIN_PERM #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM #endif +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) #include -- cgit v1.2.3