forked from pool/virtualbox
This commit is contained in:
parent
fb4e8ea690
commit
04db1af634
19
vbox_fix_4.9_api_changes.patch
Normal file
19
vbox_fix_4.9_api_changes.patch
Normal file
@ -0,0 +1,19 @@
|
||||
Index: VirtualBox-5.1.8/src/VBox/Additions/linux/sharedfolders/dirops.c
|
||||
===================================================================
|
||||
--- VirtualBox-5.1.8.orig/src/VBox/Additions/linux/sharedfolders/dirops.c
|
||||
+++ VirtualBox-5.1.8/src/VBox/Additions/linux/sharedfolders/dirops.c
|
||||
@@ -747,8 +747,14 @@ static int sf_rmdir(struct inode *parent
|
||||
* @param new_dentry new directory cache entry
|
||||
* @returns 0 on success, Linux error code otherwise
|
||||
*/
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
|
||||
static int sf_rename(struct inode *old_parent, struct dentry *old_dentry,
|
||||
struct inode *new_parent, struct dentry *new_dentry)
|
||||
+#else
|
||||
+static int sf_rename(struct inode *old_parent, struct dentry *old_dentry,
|
||||
+ struct inode *new_parent, struct dentry *new_dentry,
|
||||
+ unsigned int flags)
|
||||
+#endif
|
||||
{
|
||||
int err = 0, rc = VINF_SUCCESS;
|
||||
struct sf_glob_info *sf_g = GET_GLOB_INFO(old_parent->i_sb);
|
Loading…
Reference in New Issue
Block a user