1
0
forked from pool/virtualbox
virtualbox/fixes-for-5.11.patch

15 lines
594 B
Diff
Raw Normal View History

Index: VirtualBox-6.1.16/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
===================================================================
--- VirtualBox-6.1.16.orig/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
+++ VirtualBox-6.1.16/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
@@ -342,6 +342,9 @@ typedef struct ethtool_ops OVR_OPSTYPE;
# else /* RTLNX_VER_MIN(2,6,29) */
+#if RTLNX_VER_MIN(5,11,0)
+# include <linux/ethtool.h>
+#endif
typedef struct net_device_ops OVR_OPSTYPE;
# define OVR_OPS netdev_ops
# define OVR_XMIT pOrgOps->ndo_start_xmit