From: Roger Pau Monne Date: Wed, 26 Sep 2012 10:42:35 +0000 (+0200) Subject: netbsd: fix gettid X-Git-Tag: fio-2.0.10~14 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=12ae1bee0755c331b0d17e1f357707ca3e7d9113;ds=sidebyside netbsd: fix gettid Signed-off-by: Roger Pau Monne Signed-off-by: Jens Axboe --- 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