Commit 36d56bf3 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

ioping: enable direct for freebsd

Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
parent 27b6601a
......@@ -438,6 +438,11 @@ int main (int argc, char **argv)
flags = O_RDONLY;
#if !defined(HAVE_POSIX_FADVICE) && !defined(HAVE_NOCACHE_IO) && \
defined(HAVE_DIRECT_IO)
direct |= !cached;
#endif
if (direct)
#ifdef HAVE_DIRECT_IO
flags |= O_DIRECT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment