configure: add gettid() test
[fio.git] / os / os-dragonfly.h
index eb92521fa5ed4edab58134f1dbdff17c88fc26a2..3c460ae2f33105574769450cba7fe817362c66a6 100644 (file)
@@ -202,10 +202,12 @@ static inline unsigned long long os_phys_mem(void)
        return mem;
 }
 
        return mem;
 }
 
+#ifndef CONFIG_HAVE_GETTID
 static inline int gettid(void)
 {
        return (int) lwp_gettid();
 }
 static inline int gettid(void)
 {
        return (int) lwp_gettid();
 }
+#endif
 
 static inline unsigned long long get_fs_free_size(const char *path)
 {
 
 static inline unsigned long long get_fs_free_size(const char *path)
 {