diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index 3991db2ac..93682afb2 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -596,7 +596,7 @@ fi dnl Checks for library functions. AC_CHECK_FUNCS(strdup strerror cfmakeraw) -AC_CHECK_FUNCS(clock_gettime timer_create) +AC_CHECK_FUNCS(clock_gettime clock_nanosleep timer_create) AC_CHECK_FUNCS(sigaction signal) AC_CHECK_FUNCS(mmap mprotect munmap) AC_CHECK_FUNCS(vm_allocate vm_deallocate vm_protect) diff --git a/BasiliskII/src/timer.cpp b/BasiliskII/src/timer.cpp index 573abc77c..243f38549 100644 --- a/BasiliskII/src/timer.cpp +++ b/BasiliskII/src/timer.cpp @@ -27,6 +27,7 @@ #ifdef PRECISE_TIMING_POSIX #include #include +#include #endif #ifdef PRECISE_TIMING_MACH