Fix "cast from pointer to integer of different size" warning on OpenBSD
[fio.git] / os / os-openbsd.h
index 7def4326786d9b8e9d24f5f69b3d6fa0dd556462..9c7092c8ef4908a682323b4065d18445430bc076 100644 (file)
@@ -68,7 +68,7 @@ static inline unsigned long long os_phys_mem(void)
 
 static inline int gettid(void)
 {
 
 static inline int gettid(void)
 {
-       return (int) pthread_self();
+       return (int)(intptr_t) pthread_self();
 }
 
 static inline unsigned long long get_fs_free_size(const char *path)
 }
 
 static inline unsigned long long get_fs_free_size(const char *path)