From 55cf88481b5a1eb1609528b5a6637e3a53fda491 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 21 Dec 2017 00:42:30 +0100 Subject: compat: kernels < 3.13 modified genl_ops Signed-off-by: Jason A. Donenfeld --- src/netlink.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/netlink.c') diff --git a/src/netlink.c b/src/netlink.c index 6abdab0..b703b17 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -468,7 +468,12 @@ out_nodev: return ret; } -static const struct genl_ops genl_ops[] = { +#ifndef COMPAT_CANNOT_USE_CONST_GENL_OPS +static const +#else +static +#endif +struct genl_ops genl_ops[] = { { .cmd = WG_CMD_GET_DEVICE, #ifndef COMPAT_CANNOT_USE_NETLINK_START -- cgit v1.2.3