X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-netbsd.h;h=5d8258bd9460e2e6edaf14f441b291b1acb91fbb;hp=e03866dfc86c131ea6fa9cf32f4786b45042baf8;hb=901ebe18bdca90032e2fe107a1410385da80d18b;hpb=5037b845e0936730b5540955be64d9279ac8af9d diff --git a/os/os-netbsd.h b/os/os-netbsd.h index e03866df..5d8258bd 100644 --- a/os/os-netbsd.h +++ b/os/os-netbsd.h @@ -4,6 +4,7 @@ #include #include #include +#include /* XXX hack to avoid confilcts between rbtree.h and */ #define rb_node _rb_node #include @@ -30,6 +31,16 @@ #define PTHREAD_STACK_MIN 4096 #endif +#if BYTE_ORDER == LITTLE_ENDIAN +#define FIO_LITTLE_ENDIAN +#else +#define FIO_BIG_ENDIAN +#endif + +#define fio_swap16(x) bswap16(x) +#define fio_swap32(x) bswap32(x) +#define fio_swap64(x) bswap64(x) + typedef off_t off64_t; static inline int blockdev_invalidate_cache(struct fio_file *f)