]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
patch for kernel 4.10
authorJan Palus <atler@pld-linux.org>
Tue, 28 Feb 2017 23:37:21 +0000 (00:37 +0100)
committerJan Palus <atler@pld-linux.org>
Tue, 28 Feb 2017 23:37:21 +0000 (00:37 +0100)
VirtualBox-kernel-4.10.patch [new file with mode: 0644]
VirtualBox.spec

diff --git a/VirtualBox-kernel-4.10.patch b/VirtualBox-kernel-4.10.patch
new file mode 100644 (file)
index 0000000..e5dbb8d
--- /dev/null
@@ -0,0 +1,13 @@
+diff -urN VirtualBox-5.1.14.orig/src/VBox/Additions/linux/sharedfolders/lnkops.c VirtualBox-5.1.14/src/VBox/Additions/linux/sharedfolders/lnkops.c
+--- VirtualBox-5.1.14.orig/src/VBox/Additions/linux/sharedfolders/lnkops.c     2017-03-01 00:11:16.018923166 +0100
++++ VirtualBox-5.1.14/src/VBox/Additions/linux/sharedfolders/lnkops.c  2017-03-01 00:12:22.178411297 +0100
+@@ -90,7 +90,9 @@
+ struct inode_operations sf_lnk_iops =
+ {
++# if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
+     .readlink       = generic_readlink,
++# endif
+ # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0)
+     .get_link       = sf_get_link
+ # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
index d800b6ee17d3bb66638c6a04f6e1e32f52513eb0..851f910b971c9d00482f417e9895a0d06551686c 100644 (file)
@@ -82,6 +82,7 @@ Patch14:      %{pname}-no-scrextend.patch
 Patch15:       %{pname}-multipython.patch
 Patch16:       %{pname}-lightdm-1.19.2.patch
 Patch17:       %{pname}-no-vboxvideo.patch
+Patch18:       %{pname}-kernel-4.10.patch
 URL:           http://www.virtualbox.org/
 %if %{with userspace}
 %ifarch %{x8664}
@@ -540,6 +541,7 @@ cd ../..\
 %patch15 -p0
 %patch16 -p0
 %patch17 -p0
+%patch18 -p1
 
 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
        -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
This page took 0.040807 seconds and 4 git commands to generate.