summaryrefslogtreecommitdiffhomepage
path: root/src/netlink.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-12-21 00:42:30 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-12-21 00:58:02 +0100
commit55cf88481b5a1eb1609528b5a6637e3a53fda491 (patch)
tree6163ec22691089d16a15a8678db6fa6ea5b62525 /src/netlink.c
parent0462706042913d83317cdb4d21753f81eed2d48a (diff)
compat: kernels < 3.13 modified genl_ops
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c7
1 files changed, 6 insertions, 1 deletions
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