Index: VirtualBox-6.0.2/src/VBox/Additions/linux/sharedfolders/utils.c =================================================================== --- VirtualBox-6.0.2.orig/src/VBox/Additions/linux/sharedfolders/utils.c +++ VirtualBox-6.0.2/src/VBox/Additions/linux/sharedfolders/utils.c @@ -63,11 +63,11 @@ static void sf_timespec_from_ftime(RTTIM int64_t t = 1000000000 * *time; RTTimeSpecSetNano(ts, t); } -#else /* >= 2.6.0 */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) -static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts) -#else +#else /* >= 2.6.0 */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts) +#else +static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts) #endif { int64_t t = RTTimeSpecGetNano(ts);