X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-netbsd.h;h=78ac135f9ea035eddb02fb01e34e29a6e0e6eae6;hp=7f5f48466b3f9ab8c9c4552160592b542f7cdc49;hb=cca84643cc10cd72b0b453ff92ccb8643ba51493;hpb=b9afd959477dbaee2d331b63b0a252bd8aaf6206 diff --git a/os/os-netbsd.h b/os/os-netbsd.h index 7f5f4846..78ac135f 100644 --- a/os/os-netbsd.h +++ b/os/os-netbsd.h @@ -1,8 +1,12 @@ #ifndef FIO_OS_NETBSD_H #define FIO_OS_NETBSD_H +#define FIO_OS os_netbsd + #include #include +#include +#include /* XXX hack to avoid confilcts between rbtree.h and */ #define rb_node _rb_node #include @@ -29,6 +33,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)