Index: VirtualBox-5.2.20/src/VBox/Additions/linux/sharedfolders/utils.c =================================================================== --- VirtualBox-5.2.20.orig/src/VBox/Additions/linux/sharedfolders/utils.c +++ VirtualBox-5.2.20/src/VBox/Additions/linux/sharedfolders/utils.c @@ -49,11 +49,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);