--- src/FbTk/FbTime.cc.orig 2022-10-09 12:59:02.000000000 -0700 +++ src/FbTk/FbTime.cc 2022-10-09 13:07:00.000000000 -0700 @@ -25,7 +25,7 @@ #include -#ifdef HAVE_CLOCK_GETTIME // linux|*bsd|solaris +#if defined(HAVE_CLOCK_GETTIME) // linux|*bsd|solaris|some darwin versions #include namespace { @@ -44,13 +44,7 @@ } -#endif // HAVE_CLOCK_GETTIME - - - - - -#ifdef HAVE_MACH_ABSOLUTE_TIME // macosx +#elif defined(HAVE_MACH_ABSOLUTE_TIME) // some darwin versions // http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x // https://github.com/ThomasHabets/monotonic_clock/blob/master/src/monotonic_mach.c @@ -82,7 +76,7 @@ } -#endif // HAVE_MACH_ABSOLUTE_TIME +#endif static uint64_t start = ::_mono();