OS headers need fio_file definition now
[fio.git] / os / os-mac.h
index 1c3798bfb56f8c52fbd166f60dbb6ce80cb1ad9b..068bc5c84e3860efbe6367efeecfcc08467c9b2f 100644 (file)
@@ -4,6 +4,8 @@
 #include <errno.h>
 #include <sys/sysctl.h>
 
+#include "../file.h"
+
 #ifndef CLOCK_MONOTONIC
 #define CLOCK_MONOTONIC 1
 #endif
 #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;
 }