VirtualBox

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


Ignore:
Timestamp:
Sep 4, 2018 6:11:42 AM (6 years ago)
Author:
vboxsync
Message:

Additions/linux/sharedfolders: kernel 4.18 build fix.
Thank you Gianfranco Costamagna.

File:
1 edited

Legend:

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

    r72627 r74056  
    6464}
    6565#else                           /* >= 2.6.0 */
    66 static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC * ts)
     66#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)
     67static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts)
     68#else
     69static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts)
     70#endif
    6771{
    6872        int64_t t = RTTimeSpecGetNano(ts);
     
    7478}
    7579
    76 static void sf_timespec_from_ftime(RTTIMESPEC * ts, struct timespec *tv)
     80#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)
     81static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec *tv)
     82#else
     83static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec64 *tv)
     84#endif
    7785{
    7886        int64_t t = (int64_t) tv->tv_nsec + (int64_t) tv->tv_sec * 1000000000;
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