summaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>2020-05-28 21:56:42 +0900
committerJens Axboe <axboe@kernel.dk>2020-05-28 10:35:45 -0600
commit44ec32cbf63c76a9d0e22e0505c0d7888d07afaa (patch)
treeb4f5c7354edcec900ad71f1883d645858bb7fa19 /.appveyor.yml
parent3ed6894b00c4929896ff169778cf05752e2ed825 (diff)
downloadfio-44ec32cbf63c76a9d0e22e0505c0d7888d07afaa.tar.gz
fio-44ec32cbf63c76a9d0e22e0505c0d7888d07afaa.tar.bz2
zbd: Fix compilation error on BSD
Commit b76949618d55 ("fio: Generalize zonemode=zbd") enabled zbd.c compilation on other operating systems than Linux. This caused a compilation error on NetBSD as follows: ld: zbd.o: in function `parse_zone_info': fio/zbd.c:422: undefined reference to `pthread_mutexattr_setpshared' ld: zbd.o: in function `init_zone_info': fio/zbd.c:378: undefined reference to `pthread_mutexattr_setpshared' gmake: *** [Makefile:483: fio] Error 1 Same error is expected on other BSD OSes. Fix this by initializing mutex using helper functions pshared.c provides. To initialize mutex with POSIX_MUTEX_RECURSIVE attribute type, utilize mutex_init_pshared_with_type(). Reported-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Fixes: b76949618d55 ("fio: Generalize zonemode=zbd") Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '.appveyor.yml')
0 files changed, 0 insertions, 0 deletions