summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEryu Guan <eguan@redhat.com>2013-11-12 12:16:53 +0800
committerArne Jansen <sensille@gmx.net>2013-11-13 12:20:00 +0100
commitfe02541e83da8a854068a26388f6c7c8d11675d7 (patch)
tree1faa520a8192cba7438e8b5809edcd801ac56fbd
parenta9bd955f904bf99a522cc07fd6a6857eec9aadad (diff)
downloadfar-progs-master.tar.gz
xfstests: fix compile error of src/fssum.c on bigendian hostHEADmaster
Definition of htonll() is needed on bigendian host too, otherwise src/fssum.c won't compile on ppc64/s390x hosts. Acked-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r--fssum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fssum.c b/fssum.c
index f57594c..948bc35 100644
--- a/fssum.c
+++ b/fssum.c
@@ -43,6 +43,8 @@
#ifdef __LINUX__
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define htonll(x) __bswap_64 (x)
+#else
+#define htonll(x) (x)
#endif
#endif