From 23a2a8e35df958d2f3ffd478accfd2ba09eecdf0 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 17 Feb 2012 13:48:08 +0100 Subject: [PATCH 1/1] mutex: guard pthread_condattr_setclock() by defined "have ifdef" Signed-off-by: Jens Axboe --- mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutex.c b/mutex.c index ff6ec730..94e11884 100644 --- 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); -- 2.25.1