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 | f2168aa1713c8fae8f407cae838bab42adb07ed3 (patch) | |
tree | d264a4db1f5d5b904b6ba58337dace6be08b9b7b /src/netlink.c | |
parent | crypto: compile on UML (diff) | |
download | wireguard-monolithic-historical-f2168aa1713c8fae8f407cae838bab42adb07ed3.tar.xz wireguard-monolithic-historical-f2168aa1713c8fae8f407cae838bab42adb07ed3.zip |
compat: kernels < 3.13 modified genl_ops
Diffstat (limited to 'src/netlink.c')
-rw-r--r-- | src/netlink.c | 7 |
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 |