From 12ae1bee0755c331b0d17e1f357707ca3e7d9113 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Wed, 26 Sep 2012 12:42:35 +0200 Subject: [PATCH] netbsd: fix gettid Signed-off-by: Roger Pau Monne Signed-off-by: Jens Axboe --- os/os-netbsd.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/os/os-netbsd.h b/os/os-netbsd.h index aef578e8..de687ba3 100644 --- a/os/os-netbsd.h +++ b/os/os-netbsd.h @@ -4,8 +4,8 @@ #define FIO_OS os_netbsd #include +#include #include -#include #include /* XXX hack to avoid confilcts between rbtree.h and */ #define rb_node _rb_node @@ -63,10 +63,7 @@ static inline unsigned long long os_phys_mem(void) static inline int gettid(void) { - long lwpid; - - thr_self(&lwpid); - return (int) lwpid; + return (int) _lwp_self(); } #ifdef MADV_FREE -- 2.25.1