X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-netbsd.h;h=de687ba386103b7e40be350724d4262b2894fa06;hp=5d8258bd9460e2e6edaf14f441b291b1acb91fbb;hb=ffa93ca9d8d37ef795904773a22bf4ea77f58373;hpb=901ebe18bdca90032e2fe107a1410385da80d18b diff --git a/os/os-netbsd.h b/os/os-netbsd.h index 5d8258bd..de687ba3 100644 --- a/os/os-netbsd.h +++ b/os/os-netbsd.h @@ -1,9 +1,11 @@ #ifndef FIO_OS_NETBSD_H #define FIO_OS_NETBSD_H +#define FIO_OS os_netbsd + #include +#include #include -#include #include /* XXX hack to avoid confilcts between rbtree.h and */ #define rb_node _rb_node @@ -21,6 +23,7 @@ #define FIO_HAVE_FDATASYNC #define FIO_USE_GENERIC_BDEV_SIZE #define FIO_USE_GENERIC_RAND +#define FIO_USE_GENERIC_INIT_RANDOM_STATE #define FIO_HAVE_GETTID #undef FIO_HAVE_CPU_AFFINITY /* XXX notyet */ @@ -60,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