aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-05 15:19:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-05 15:27:29 +0200
commitb2af95e8ef3b4484c5e34ed6594c22c07bec8a28 (patch)
tree0ac842ff84924173c48e358e1e4823995bd88b1f /src/compat/compat.h
parentcompat: conditionally redefine GENL_UNS_ADMIN_PERM (diff)
downloadwireguard-monolithic-historical-b2af95e8ef3b4484c5e34ed6594c22c07bec8a28.tar.xz
wireguard-monolithic-historical-b2af95e8ef3b4484c5e34ed6594c22c07bec8a28.zip
compat: RHEL backported netlink changes
Diffstat (limited to '')
-rw-r--r--src/compat/compat.h2
1 files changed, 1 insertions, 1 deletions
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 <net/genetlink.h>
-#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)