--- drivers/unix/os_unix.cpp.orig 2018-04-30 09:53:04.627075270 +0200 +++ drivers/unix/os_unix.cpp 2018-04-30 09:53:16.892670422 +0200 @@ -235,7 +235,7 @@ OS::TimeZoneInfo OS_Unix::get_time_zone_ void OS_Unix::delay_usec(uint32_t p_usec) const { - struct timespec rem = { p_usec / 1000000, (p_usec % 1000000) * 1000 }; + struct timespec rem = { (time_t)(p_usec / 1000000), (long)(p_usec % 1000000) * 1000 }; while (nanosleep(&rem, &rem) == EINTR) { } }