Skip to contentSkip to conversation

xfstests: fix compile error of src/fssum.c on bigendian host

PATCH RESEND In review Eryu Guan 3 participants 3 messages Nov 12, 2013 – Nov 13, 2013

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH RESEND 1/1 xfstests: fix compile error of src/fssum.c on bigendian host

Definition of htonll() is needed on bigendian host too, otherwise src/fssum.c won't compile on ppc64/s390x hosts.

---
 src/fssum.c | 2 ++
 1 file changed, 2 insertions(+)
src/fssum.c +2 -0
index c75ff8b..c26d32b 100644
@@ -50,6 +50,8 @@
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define htonll(x)     __bswap_64 (x)
+#else
+#define htonll(x)     (x)
 #endif
 #endif
 
Signature · 6 lines
1.8.3.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs