X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-netbsd.h;h=1753226e5512eaa22fcc4283056181f771730fe5;hp=aef578e8014d8258b962408bd5f1a0c604264a7e;hb=67bf982340d95ca98098ea050b54b4c7adb116c0;hpb=93bcfd20e37cef8cec350fe06d3a086724c9f257 diff --git a/os/os-netbsd.h b/os/os-netbsd.h index aef578e8..1753226e 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 @@ -16,11 +16,7 @@ #include "../file.h" -#define FIO_HAVE_POSIXAIO -#define FIO_HAVE_FADVISE #define FIO_HAVE_ODIRECT -#define FIO_HAVE_STRSEP -#define FIO_HAVE_FDATASYNC #define FIO_USE_GENERIC_BDEV_SIZE #define FIO_USE_GENERIC_RAND #define FIO_USE_GENERIC_INIT_RANDOM_STATE @@ -63,10 +59,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