diff --git a/programs/util.h b/programs/util.h index 37098f2f..f510bc5e 100644 --- a/programs/util.h +++ b/programs/util.h @@ -168,7 +168,7 @@ static int g_utilDisplayLevel; } return ((clockEnd - clockStart) * (U64)rate.numer) / ((U64)rate.denom); } -#elif (PLATFORM_POSIX_VERSION >= 200112L) +#elif defined __UCLIBC__ || ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 17) || __GLIBC__ > 2) #include #define UTIL_TIME_INITIALIZER { 0, 0 } typedef struct timespec UTIL_freq_t;