X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=mutex.c;h=e1fbb607f1a416fb06a25a611f0f4233c9814357;hp=d1e3ceaeff3469be1462ed1af7434f44e8760a72;hb=7750aac43ee4e0c001860426e6fdaf22d9ddfc76;hpb=cdb57fe2e6ab3418e0e137282be46201b1f5acc0 diff --git a/mutex.c b/mutex.c index d1e3ceae..e1fbb607 100644 --- a/mutex.c +++ b/mutex.c @@ -205,9 +205,12 @@ struct fio_rwlock *fio_rwlock_init(void) log_err("pthread_rwlockattr_setpshared: %s\n", strerror(ret)); goto destroy_attr; } -#endif ret = pthread_rwlock_init(&lock->lock, &attr); +#else + ret = pthread_rwlock_init(&lock->lock, NULL); +#endif + if (ret) { log_err("pthread_rwlock_init: %s\n", strerror(ret)); goto destroy_attr;