Fix Solaris compile
[fio.git] / os / os-solaris.h
index 681d4a60729e5f8207c79c9a0fc9ac41ede3c72e..c0d3c30f82ba2e93b458d96bb1c5d9ef238eafd8 100644 (file)
@@ -19,6 +19,7 @@
 #define FIO_HAVE_FDATASYNC
 #define FIO_HAVE_CHARDEV_SIZE
 #define FIO_USE_GENERIC_BDEV_SIZE
+#define FIO_HAVE_GETTID
 
 #define OS_MAP_ANON            MAP_ANON
 #define OS_RAND_MAX            2147483648UL
@@ -119,6 +120,11 @@ static inline int fio_cpuset_exit(os_cpu_mask_t *mask)
        return 0;
 }
 
+static inline int gettid(void)
+{
+       return pthread_self();
+}
+
 /*
  * Should be enough, not aware of what (if any) restrictions Solaris has
  */