VirtualBox

Changeset 87033 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Dec 2, 2020 7:36:35 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141675
Message:

linux/vboxsf: Fix vfsmod.o build failure when compiling on kernels < 2.5.4. bugref:9816

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r87014 r87033  
    907907    return err;
    908908}
    909 #endif
    910 
    911 #if RTLNX_VER_RANGE(2,6,39,  5,1,0)
     909
     910# if RTLNX_VER_MIN(2,6,39)
    912911static struct dentry *sf_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *data)
    913912{
     
    915914    return mount_nodev(fs_type, flags, data, vbsf_read_super_26);
    916915}
    917 #elif RTLNX_VER_RANGE(2,6,18,  2,6,39)
     916# elif RTLNX_VER_MIN(2,6,18)
    918917static int vbsf_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct vfsmount *mnt)
    919918{
     
    921920    return get_sb_nodev(fs_type, flags, data, vbsf_read_super_26, mnt);
    922921}
    923 #elif RTLNX_VER_MAX(2,6,18) /* < 2.6.18 */
     922# else /* 2.6.18 > version >= 2.5.4 */
    924923static struct super_block *vbsf_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data)
    925924{
     
    927926    return get_sb_nodev(fs_type, flags, data, vbsf_read_super_26);
    928927}
    929 #endif
     928# endif
     929#endif /* 5.1.0 > version >= 2.5.4 */
    930930
    931931#if RTLNX_VER_MAX(2,5,4)  /* < 2.5.4 */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette