summaryrefslogtreecommitdiff
path: root/os/os-netbsd.h
diff options
context:
space:
mode:
authorTomohiro Kusumi <tkusumi@tuxera.com>2017-08-30 00:12:11 +0300
committerJens Axboe <axboe@kernel.dk>2017-08-29 15:14:52 -0600
commit3d138b3e8fe85fbd7f33db3f90e2f1064a26bab5 (patch)
tree5ca633257546fe97f0d265969720499e78be3eec /os/os-netbsd.h
parenta4befdc605bc253f258a99e9f0d037147775035e (diff)
downloadfio-3d138b3e8fe85fbd7f33db3f90e2f1064a26bab5.tar.gz
fio-3d138b3e8fe85fbd7f33db3f90e2f1064a26bab5.tar.bz2
cleanup NetBSD/OpenBSD header
* NetBSD's <sys/rb.h> was renamed to <sys/rbtree.h> 7 years ago. * Drop unneeded undefs. Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/os-netbsd.h')
-rw-r--r--os/os-netbsd.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/os/os-netbsd.h b/os/os-netbsd.h
index eac76cf2..682a11c9 100644
--- a/os/os-netbsd.h
+++ b/os/os-netbsd.h
@@ -11,9 +11,9 @@
#include <sys/dkio.h>
#include <sys/disklabel.h>
#include <sys/endian.h>
-/* XXX hack to avoid confilcts between rbtree.h and <sys/rb.h> */
-#define rb_node _rb_node
#include <sys/sysctl.h>
+
+/* XXX hack to avoid confilcts between rbtree.h and <sys/rbtree.h> */
#undef rb_node
#undef rb_left
#undef rb_right
@@ -26,8 +26,6 @@
#define FIO_HAVE_FS_STAT
#define FIO_HAVE_GETTID
-#undef FIO_HAVE_CPU_AFFINITY /* doesn't exist */
-
#define OS_MAP_ANON MAP_ANON
#ifndef PTHREAD_STACK_MIN