From 8104433da4f11aeb560100857b996d36f1440aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Mon, 18 Nov 2024 01:24:51 +0100 Subject: [PATCH] Fix build on macos --- src/system/unix/system.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/unix/system.c b/src/system/unix/system.c index 36a8112cf..90912513e 100644 --- a/src/system/unix/system.c +++ b/src/system/unix/system.c @@ -132,7 +132,9 @@ z_result_t _z_mutex_unlock(_z_mutex_t *m) { _Z_CHECK_SYS_ERR(pthread_mutex_unloc z_result_t _z_condvar_init(_z_condvar_t *cv) { pthread_condattr_t attr; pthread_condattr_init(&attr); +#ifndef ZENOH_MACOS pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); +#endif _Z_CHECK_SYS_ERR(pthread_cond_init(cv, &attr)); }