X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-freebsd.h;h=1a4f11319b70fe118f2bdac80594362a22d7438b;hp=317d403f3bd3f228deeaf7d45f00312986c65be3;hb=232f9b73353e0322fe135d3029beecedaed7a17b;hpb=ff2451922f21826c2047208c2c3963843b1ffdcc diff --git a/os/os-freebsd.h b/os/os-freebsd.h index 317d403f..1a4f1131 100644 --- a/os/os-freebsd.h +++ b/os/os-freebsd.h @@ -5,6 +5,7 @@ #include #include #include +#include #include "../file.h" @@ -18,6 +19,16 @@ #define OS_MAP_ANON MAP_ANON +#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_size(struct fio_file *f, unsigned long long *bytes)