Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxx> --- 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 aef578e..de687ba 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 -- 1.7.7.5 (Apple Git-26) -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html