Linux: Use the byte order functions from <asm/byteorder.h>
authorBart Van Assche <bvanassche@acm.org>
Wed, 24 Aug 2022 22:05:32 +0000 (15:05 -0700)
committerBart Van Assche <bvanassche@acm.org>
Tue, 30 Aug 2022 22:56:17 +0000 (15:56 -0700)
Prepare for the unification of the Linux and Android header files by
switching to the <asm/byteorder.h> functions for Linux.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
os/os-linux.h

index 4a05a77517dc189c94da61430da1c57e4519f8c6..84d1e33167e49e6bb2b8a50a7b8816ac7dcdfb7a 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/major.h>
 #include <linux/fs.h>
 #include <scsi/sg.h>
+#include <asm/byteorder.h>
 
 #ifdef ARCH_HAVE_CRC_CRYPTO
 #include <sys/auxv.h>
@@ -50,6 +51,7 @@
 #define FIO_HAVE_TRIM
 #define FIO_HAVE_GETTID
 #define FIO_USE_GENERIC_INIT_RANDOM_STATE
+#define FIO_HAVE_BYTEORDER_FUNCS
 #define FIO_HAVE_PWRITEV2
 #define FIO_HAVE_SHM_ATTACH_REMOVED