configure: add gettid() test
[fio.git] / os / os-solaris.h
index 1a411af664e8de947fc0497f59a12648e8d60fe0..f1966f449d9f4acb6fa7b20c3b376ae6f384fb8c 100644 (file)
@@ -164,10 +164,12 @@ static inline int fio_cpuset_exit(os_cpu_mask_t *mask)
        return 0;
 }
 
+#ifndef CONFIG_HAVE_GETTID
 static inline int gettid(void)
 {
        return pthread_self();
 }
+#endif
 
 /*
  * Should be enough, not aware of what (if any) restrictions Solaris has