Skip to content

Commit

Permalink
Fix build on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Nov 18, 2024
1 parent c86205f commit 8104433
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/system/unix/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 8104433

Please sign in to comment.