VirtualBox

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


Ignore:
Timestamp:
Nov 8, 2011 9:23:51 AM (13 years ago)
Author:
vboxsync
Message:

Linux 3.2-rc1 compile fixes

File:
1 edited

Legend:

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

    r38925 r39224  
    111111        /* XXX: this probably should be set to the number of entries
    112112           in the directory plus two (. ..) */
     113#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
     114        set_nlink(inode, 1);
     115#else
    113116        inode->i_nlink = 1;
     117#endif
    114118    }
    115119#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
     
    120124        inode->i_mode |= S_IFLNK;
    121125        inode->i_op    = &sf_lnk_iops;
     126# if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
     127        set_nlink(inode, 1);
     128# else
    122129        inode->i_nlink = 1;
     130# endif
    123131    }
    124132#endif
     
    130138        inode->i_op    = &sf_reg_iops;
    131139        inode->i_fop   = &sf_reg_fops;
     140#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
     141        set_nlink(inode, 1);
     142#else
    132143        inode->i_nlink = 1;
     144#endif
    133145    }
    134146
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