zbd: Fix build errors on Windows and MacOS
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 8 Apr 2020 01:54:26 +0000 (10:54 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Apr 2020 02:20:36 +0000 (20:20 -0600)
commit9d87c646c45227c86c5a15faee2a6717a4bf1b46
treeb6d75885eafa09e87a6267b7999048fb5e76e886
parent427a7e0950a49a6e350a8e63a31cd8b1f331d4cc
zbd: Fix build errors on Windows and MacOS

Including dirent.h is not needed, so remove it to avoid a compilation
error on Windows and MacOS. Also make sure that EREMOTEIO is defined as
some OSes do not have this error code.

Fixes: b76949618d55 ("fio: Generalize zonemode=zbd")
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
zbd.c