configure: add endian check
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index a14d7f0c0333152ed6663d895d787fb95d7e1f18..fb544a173e4a2c03e56bc893b18f37d38205715b 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -165,7 +165,7 @@ static inline uint64_t fio_swap64(uint64_t val)
 #endif
 
 #ifndef FIO_HAVE_BYTEORDER_FUNCS
 #endif
 
 #ifndef FIO_HAVE_BYTEORDER_FUNCS
-#ifdef FIO_LITTLE_ENDIAN
+#ifdef CONFIG_LITTLE_ENDIAN
 #define __le16_to_cpu(x)               (x)
 #define __le32_to_cpu(x)               (x)
 #define __le64_to_cpu(x)               (x)
 #define __le16_to_cpu(x)               (x)
 #define __le32_to_cpu(x)               (x)
 #define __le64_to_cpu(x)               (x)