Changeset 74056 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Sep 4, 2018 6:11:42 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r72627 r74056 64 64 } 65 65 #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) 67 static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts) 68 #else 69 static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts) 70 #endif 67 71 { 68 72 int64_t t = RTTimeSpecGetNano(ts); … … 74 78 } 75 79 76 static void sf_timespec_from_ftime(RTTIMESPEC * ts, struct timespec *tv) 80 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) 81 static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec *tv) 82 #else 83 static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec64 *tv) 84 #endif 77 85 { 78 86 int64_t t = (int64_t) tv->tv_nsec + (int64_t) tv->tv_sec * 1000000000;
Note:
See TracChangeset
for help on using the changeset viewer.