mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-05 12:52:20 +08:00
mdbx: refine POSIX-options detection.
This commit is contained in:
@@ -388,7 +388,8 @@ void osal_udelay(unsigned us) {
|
||||
|
||||
static unsigned threshold_us;
|
||||
if (threshold_us == 0) {
|
||||
#ifdef CLOCK_PROCESS_CPUTIME_ID
|
||||
#if defined(_POSIX_CPUTIME) && _POSIX_CPUTIME > -1 && \
|
||||
defined(CLOCK_PROCESS_CPUTIME_ID)
|
||||
if (clock_getres(CLOCK_PROCESS_CPUTIME_ID, &ts)) {
|
||||
int rc = errno;
|
||||
log_warning("clock_getres(CLOCK_PROCESS_CPUTIME_ID), failed errno %d",
|
||||
|
Reference in New Issue
Block a user