Control: found -1 5.2.0-dfsg-5 Control: tags -1 +patch Please find attached patch which solves the build for me. Cherry picked from https://gist.github.com/herbmillerjr/039c129e9c25b047b906e19ad1f23a59
Elimar -- Excellent day for drinking heavily. Spike the office water cooler;-)
From 0527fdb5307a59ece06d47e10246bd5db94faa2f Mon Sep 17 00:00:00 2001 From: Elimar Riesebieter <riese...@lxtec.de> Date: Sun, 12 Nov 2017 12:53:57 +0100 Subject: [PATCH] Fix for Debian #880068. --- src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c | 4 ++++ src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c b/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c index 057b7c619..8641f2d6c 100644 --- a/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c +++ b/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c @@ -141,6 +141,10 @@ typedef struct VBOXNETFLTNOTIFIER *PVBOXNETFLTNOTIFIER; # endif #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0) +#define SKB_GSO_UDP 0 +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 20, 0) # define VBOX_HAVE_SKB_VLAN #else diff --git a/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c b/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c index 3a3f00a47..4dd8c509d 100644 --- a/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c +++ b/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c @@ -353,12 +353,16 @@ static void vboxPciFileClose(struct file* file) static int vboxPciFileWrite(struct file* file, unsigned long long offset, unsigned char* data, unsigned int size) { int ret; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0) + ret = kernel_write(file, data, size, &offset); +#else mm_segment_t fs_save; fs_save = get_fs(); set_fs(get_ds()); ret = vfs_write(file, data, size, &offset); set_fs(fs_save); +#endif if (ret < 0) printk(KERN_DEBUG "vboxPciFileWrite: error %d\n", ret); -- 2.15.0
signature.asc
Description: PGP signature