summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-02-17 13:48:08 +0100
committerJens Axboe <axboe@kernel.dk>2012-02-17 13:48:08 +0100
commit23a2a8e35df958d2f3ffd478accfd2ba09eecdf0 (patch)
tree224182e0c172294e8b37b6d1ca7403cc76f700a0 /mutex.c
parentb4c1fb368f9863449e4c0312df845b58f8b67717 (diff)
downloadfio-23a2a8e35df958d2f3ffd478accfd2ba09eecdf0.tar.gz
mutex: guard pthread_condattr_setclock() by defined "have ifdef"
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c2
1 files changed, 1 insertions, 1 deletions
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);