diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-09-26 12:42:35 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-09-26 12:42:35 +0200 |
commit | 12ae1bee0755c331b0d17e1f357707ca3e7d9113 (patch) | |
tree | 83a23d99dcbadcb7c66fbbe5ac866fe6d3f52ba5 /os/os-netbsd.h | |
parent | 88045e04fdd81dbb584d70f9faeb1f6498a85159 (diff) | |
download | fio-12ae1bee0755c331b0d17e1f357707ca3e7d9113.tar.gz fio-12ae1bee0755c331b0d17e1f357707ca3e7d9113.tar.bz2 |
netbsd: fix gettid
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/os-netbsd.h')
-rw-r--r-- | os/os-netbsd.h | 7 |
1 files 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 <errno.h> +#include <lwp.h> #include <sys/param.h> -#include <sys/thr.h> #include <sys/endian.h> /* XXX hack to avoid confilcts between rbtree.h and <sys/rb.h> */ #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 |