Merge branch 'nowait' of https://github.com/koct9i/fio
[fio.git] / os / os-mac.h
index 0b9c870761df96677a90a80f183a1c850fec2a36..2852ac678857cd2ed7225f9d5d73f1d0d54ca2f7 100644 (file)
@@ -33,8 +33,6 @@
  */
 #define FIO_MAX_JOBS           128
 
-typedef off_t off64_t;
-
 #ifndef CONFIG_CLOCKID_T
 typedef unsigned int clockid_t;
 #endif
@@ -90,16 +88,12 @@ static inline unsigned long long os_phys_mem(void)
        return mem;
 }
 
+#ifndef CONFIG_HAVE_GETTID
 static inline int gettid(void)
 {
        return mach_thread_self();
 }
-
-/*
- * For some reason, there's no header definition for fdatasync(), even
- * if it exists.
- */
-extern int fdatasync(int fd);
+#endif
 
 static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t len)
 {