X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-mac.h;h=068bc5c84e3860efbe6367efeecfcc08467c9b2f;hp=be25458f0165d0a7c590f500c3c9051cd35505f4;hb=e2e58886427019b525d2a234c5404a38ec0c7ebf;hpb=331539ace6487a031f40281eacf41e4de008ad23 diff --git a/os/os-mac.h b/os/os-mac.h index be25458f..068bc5c8 100644 --- a/os/os-mac.h +++ b/os/os-mac.h @@ -4,6 +4,8 @@ #include #include +#include "../file.h" + #ifndef CLOCK_MONOTONIC #define CLOCK_MONOTONIC 1 #endif @@ -13,16 +15,16 @@ #endif #define FIO_HAVE_POSIXAIO +#define FIO_HAVE_CLOCK_MONOTONIC #define FIO_USE_GENERIC_BDEV_SIZE #define FIO_USE_GENERIC_RAND #define OS_MAP_ANON MAP_ANON -typedef unsigned long os_cpu_mask_t; typedef unsigned int clockid_t; typedef off_t off64_t; -static inline int blockdev_invalidate_cache(int fd) +static inline int blockdev_invalidate_cache(struct fio_file fio_unused *f) { return EINVAL; }