Only expose fadvise_hint=noreuse if supported
authorJens Axboe <axboe@kernel.dk>
Fri, 31 Mar 2023 18:52:01 +0000 (12:52 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 31 Mar 2023 18:52:01 +0000 (12:52 -0600)
commit638689b15af35bd746f9114a3e8895e7a983ed83
tree393f01f5b196376b75b177de976646852e2f8bcd
parent109aad505302d2924396774f267eca7451f8fb14
Only expose fadvise_hint=noreuse if supported

At least OSX doesn't have this option or define, just make it
available if it's there on the platform we're building on.

Fixes: eb314e7072a0 ("fio: add support for POSIX_FADV_NOREUSE")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
ioengines.c
options.c