X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-mac.h;h=7de36ea79aa7b43a7f962796526cf000a2458527;hp=76d388e9201f357b8c6867ca9f8e0e5c799e1602;hb=22de5d77;hpb=ae24a6153993ebd2341f3459cfd975b917847a3e diff --git a/os/os-mac.h b/os/os-mac.h index 76d388e9..7de36ea7 100644 --- a/os/os-mac.h +++ b/os/os-mac.h @@ -35,7 +35,9 @@ typedef off_t off64_t; +#ifndef CONFIG_CLOCKID_T typedef unsigned int clockid_t; +#endif #define FIO_OS_DIRECTIO static inline int fio_set_odirect(int fd) @@ -75,7 +77,7 @@ static inline int chardev_size(struct fio_file *f, unsigned long long *bytes) static inline int blockdev_invalidate_cache(struct fio_file *f) { - return EINVAL; + return ENOTSUP; } static inline unsigned long long os_phys_mem(void)