configure: add gettid() test
[fio.git] / os / os-windows.h
index dc958f5c17189465310a48fb2a1ff28bcc3b6581..3e9f73413b26a5f2c5e778b63df4281f2e7df994 100644 (file)
@@ -162,10 +162,12 @@ static inline unsigned long long os_phys_mem(void)
        return (unsigned long long) pages * (unsigned long long) pagesize;
 }
 
+#ifndef CONFIG_HAVE_GETTID
 static inline int gettid(void)
 {
        return GetCurrentThreadId();
 }
+#endif
 
 static inline int init_random_seeds(uint64_t *rand_seeds, int size)
 {