configure: add gettid() test
[fio.git] / os / os-mac.h
index 0b9c870761df96677a90a80f183a1c850fec2a36..a073300c40c5ed6fea8c2ec2ff4933776ef7066d 100644 (file)
@@ -90,10 +90,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();
 }
+#endif
 
 /*
  * For some reason, there's no header definition for fdatasync(), even