1
0
forked from pool/virtualbox
virtualbox/fixes-for-5.11.patch
Larry Finger a09d775e1f Accepting request 859313 from home:lwfinger:branches:Virtualization
- Fix build for kernel 5.11 - File "fixes-for-5.11.patch" is added.

- Disable build of guest modules. These are included in recent kernels
  and are not needed for Tumbleweed, Leap 15.1 and Leap 15.3.
  File "vboxguestconfig.sh" is deleted.

OBS-URL: https://build.opensuse.org/request/show/859313
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=582
2020-12-30 07:01:39 +00:00

15 lines
594 B
Diff

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