xfstests: fix compile error of src/fssum.c on bigendian host
authorEryu Guan <eguan@redhat.com>
Tue, 12 Nov 2013 04:16:53 +0000 (04:16 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 12 Nov 2013 13:59:27 +0000 (07:59 -0600)
Definition of htonll() is needed on bigendian host too, otherwise
src/fssum.c won't compile on ppc64/s390x hosts.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
src/fssum.c

index c75ff8b651fedbdd1d317e111c817127f178e36d..c26d32b9c8f6ff2114e0fd632598a6dbd13078ed 100644 (file)
@@ -50,6 +50,8 @@
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define htonll(x)     __bswap_64 (x)
+#else
+#define htonll(x)     (x)
 #endif
 #endif