X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-openbsd.h;h=9c7092c8ef4908a682323b4065d18445430bc076;hp=7def4326786d9b8e9d24f5f69b3d6fa0dd556462;hb=227d026f88a4264ef717230990c82910ee3619fc;hpb=22de5d7741f963e57dd5e3bb70d822e992dd2515 diff --git a/os/os-openbsd.h b/os/os-openbsd.h index 7def4326..9c7092c8 100644 --- a/os/os-openbsd.h +++ b/os/os-openbsd.h @@ -68,7 +68,7 @@ static inline unsigned long long os_phys_mem(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)