diff options
author | Jens Axboe <axboe@kernel.dk> | 2012-02-17 13:48:08 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-02-17 13:48:08 +0100 |
commit | 23a2a8e35df958d2f3ffd478accfd2ba09eecdf0 (patch) | |
tree | 224182e0c172294e8b37b6d1ca7403cc76f700a0 /mutex.c | |
parent | b4c1fb368f9863449e4c0312df845b58f8b67717 (diff) | |
download | fio-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |