From 2816889d2e0ed67c9d3aee537f4ddfbe0e83af30 Mon Sep 17 00:00:00 2001 From: rakslice Date: Wed, 8 Jan 2025 06:10:59 -0800 Subject: [PATCH] changes for b2 high precision timer for posix --- BasiliskII/src/Unix/configure.ac | 2 +- BasiliskII/src/timer.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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