X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-netbsd.h;h=682a11c95f1ccb91df421e424923dbd2c9703761;hp=2133d7a11b6dff9648d885c4285140ce8806a827;hb=a871240086ca6bdc52f79d7459ed283c5a359299;hpb=fc0aa68abd51f312f0b609ea0aef4524a8652316 diff --git a/os/os-netbsd.h b/os/os-netbsd.h index 2133d7a1..682a11c9 100644 --- a/os/os-netbsd.h +++ b/os/os-netbsd.h @@ -10,9 +10,10 @@ #include #include #include -/* XXX hack to avoid confilcts between rbtree.h and */ -#define rb_node _rb_node +#include #include + +/* XXX hack to avoid confilcts between rbtree.h and */ #undef rb_node #undef rb_left #undef rb_right @@ -25,8 +26,6 @@ #define FIO_HAVE_FS_STAT #define FIO_HAVE_GETTID -#undef FIO_HAVE_CPU_AFFINITY /* XXX notyet */ - #define OS_MAP_ANON MAP_ANON #ifndef PTHREAD_STACK_MIN @@ -54,7 +53,7 @@ static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes) static inline int blockdev_invalidate_cache(struct fio_file *f) { - return EINVAL; + return ENOTSUP; } static inline unsigned long long os_phys_mem(void)