9cc4332712
for kernel 4.10. This change is the fix for bsc #1027967. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=315
16 lines
632 B
Diff
16 lines
632 B
Diff
|
|
Index: VirtualBox-5.1.14/src/VBox/Additions/linux/sharedfolders/lnkops.c
|
|
===================================================================
|
|
--- VirtualBox-5.1.14.orig/src/VBox/Additions/linux/sharedfolders/lnkops.c
|
|
+++ VirtualBox-5.1.14/src/VBox/Additions/linux/sharedfolders/lnkops.c
|
|
@@ -90,7 +90,9 @@ static const char *sf_get_link(struct de
|
|
|
|
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)
|