mutex: guard pthread_condattr_setclock() by defined "have ifdef"
[fio.git] / mutex.c
diff --git a/mutex.c b/mutex.c
index ff6ec73062efb4bed4c4a880c0276a263a9a722d..94e11884424cd203cd1f3357fef33250ffbd94eb 100644 (file)
--- a/mutex.c
+++ b/mutex.c
@@ -64,7 +64,7 @@ struct fio_mutex *fio_mutex_init(int value)
 #ifdef FIO_HAVE_PSHARED_MUTEX
        pthread_condattr_setpshared(&cond, PTHREAD_PROCESS_SHARED);
 #endif
-#ifdef FIO_HAVE_CLOCK_MONOTONIC
+#ifdef FIO_HAVE_PTHREAD_CONDATTR_SETCLOCK
        pthread_condattr_setclock(&cond, fio_clk_id);
 #endif
        pthread_cond_init(&mutex->cond, &cond);