configure: add gettid() test
[fio.git] / os / os-openbsd.h
index 70f58b49ce3572a9f24b414a998ed79e6ab32a49..43a649d447bcaeaa3d72f6cdd4dcd58194bd4393 100644 (file)
@@ -65,10 +65,12 @@ static inline unsigned long long os_phys_mem(void)
        return mem;
 }
 
+#ifndef CONFIG_HAVE_GETTID
 static inline int gettid(void)
 {
        return (int)(intptr_t) pthread_self();
 }
+#endif
 
 static inline unsigned long long get_fs_free_size(const char *path)
 {