Whamcloud - gitweb
Switch endian detection from Linuxism to AC_C_BIGENDIAN.
authorMatthias Andree <matthias.andree@gmx.de>
Tue, 30 May 2006 12:42:47 +0000 (14:42 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Tue, 30 May 2006 12:42:47 +0000 (14:42 +0200)
This fixes all blkid test failures on FreeBSD 4.11 i386.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
lib/blkid/probe.h

index 010ffe2..840e526 100644 (file)
@@ -414,7 +414,7 @@ _INLINE_ __u64 blkid_swab64(__u64 val)
 
 
 
-#if  __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
 #define blkid_le16(x) blkid_swab16(x)
 #define blkid_le32(x) blkid_swab32(x)
 #define blkid_le64(x) blkid_swab64(x)