X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-mac.h;h=92a60ee98766f0fc1526cd440e38a687e6cc02ae;hb=9c6f1e756dbf6c0916b0b94d9b0bcd1d9c43b9e9;hp=a1536c70fabaf9e2de907eab9ffec0740f2bb3db;hpb=1be7afd7329ebdca520d637f571d2b31c33f6ba1;p=fio.git diff --git a/os/os-mac.h b/os/os-mac.h index a1536c70..92a60ee9 100644 --- a/os/os-mac.h +++ b/os/os-mac.h @@ -41,9 +41,9 @@ typedef unsigned int clockid_t; #endif #define FIO_OS_DIRECTIO -static inline int fio_set_odirect(int fd) +static inline int fio_set_odirect(struct fio_file *f) { - if (fcntl(fd, F_NOCACHE, 1) == -1) + if (fcntl(f->fd, F_NOCACHE, 1) == -1) return errno; return 0; }