More endianness for platforms
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/os/os-solaris.h b/os/os-solaris.h
index c0d3c30..ef37e49 100644
--- a/os/os-solaris.h
+++ b/os/os-solaris.h
@@ -8,6 +8,7 @@
#include <sys/pset.h>
#include <sys/mman.h>
#include <sys/dkio.h>
+#include <sys/byteorder.h>
#include "../file.h"
@@ -24,6 +25,16 @@
#define OS_MAP_ANON MAP_ANON
#define OS_RAND_MAX 2147483648UL
+#if defined(_BIG_ENDIAN)
+#define FIO_BIG_ENDIAN
+#else
+#define FIO_LITTLE_ENDIAN
+#endif
+
+#define fio_swap16(x) BSWAP_16(x)
+#define fio_swap32(x) BSWAP_32(x)
+#define fio_swap64(x) BSWAP_64(x)
+
struct solaris_rand_seed {
unsigned short r[3];
};