From 9b61b36f309f2a23691e0b2da80fb38dbfb18877 Mon Sep 17 00:00:00 2001 From: brektrou <48123110+brektrou@users.noreply.github.com> Date: Fri, 15 Mar 2019 09:02:51 +0700 Subject: [PATCH] Fix build error for Linux >= 4.19 --- os_dep/linux/os_intfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index e972fbb..c4b5157 100755 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -1447,7 +1447,8 @@ static const struct net_device_ops rtw_netdev_ops = { .ndo_stop = netdev_close, .ndo_start_xmit = rtw_xmit_entry, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)) - .ndo_init = rtw_ndev_init, +// Fix build error for Linux >= 4.19 + .ndo_init = rtw_ndev_init, .ndo_uninit = rtw_ndev_uninit, .ndo_open = netdev_open, .ndo_stop = netdev_close,