It was reported that the commit b76949618d55 ("fio: Generalize zonemode=zbd") triggered a compilation failure of zbd.c on NetBSD which does not have pthread_mutexattr_setpshared(). This patch series addresses the failure. To avoid pthread_mutexattr_setpshared() calls, utilize helper functions pshared.c provides. The first patch adds another helper function in pshared.c to initialize mutex with attribute types desired. The second patch replace mutex initialization in zbd.c with the helper functions. To initialize mutex with POSIX_MUTEX_RECURSIVE attribute type, utilize the newly introduced function. I do not have NetBSD (or other BSD) system then this series is not confirmed build pass on NetBSD. Confirmation by BSD users will be appreciated. Shin'ichiro Kawasaki (2): pshared: Add mutex_init_pshared_with_type() zbd: Fix compilation error on BSD pshared.c | 15 ++++++++++++++- pshared.h | 1 + zbd.c | 22 +++++++--------------- 3 files changed, 22 insertions(+), 16 deletions(-) -- 2.25.4