diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-12-21 00:42:30 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-12-21 00:58:02 +0100 |
commit | 55cf88481b5a1eb1609528b5a6637e3a53fda491 (patch) | |
tree | 6163ec22691089d16a15a8678db6fa6ea5b62525 /src/compat | |
parent | 0462706042913d83317cdb4d21753f81eed2d48a (diff) |
compat: kernels < 3.13 modified genl_ops
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/compat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 859d417..7bd3e50 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -468,7 +468,8 @@ static inline struct nlattr **genl_family_attrbuf(const struct genl_family *fami #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) #include <net/genetlink.h> #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)) +#define genl_register_family(a) genl_register_family_with_ops(a, genl_ops, ARRAY_SIZE(genl_ops)) +#define COMPAT_CANNOT_USE_CONST_GENL_OPS #else #define genl_register_family(a) genl_register_family_with_ops(a, genl_ops) #endif |