From: Eryu Guan Date: Tue, 12 Nov 2013 04:16:53 +0000 (+0000) Subject: xfstests: fix compile error of src/fssum.c on bigendian host X-Git-Tag: v2022.05.01~3324 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d2a446df422c5a1b9ab561ae73e66b68a5aa4c3;p=xfstests-dev.git 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. Signed-off-by: Eryu Guan Acked-by: Dave Chinner Reviewed-by: Carlos Maiolino Signed-off-by: Rich Johnston --- diff --git a/src/fssum.c b/src/fssum.c index c75ff8b6..c26d32b9 100644 --- a/src/fssum.c +++ b/src/fssum.c @@ -50,6 +50,8 @@ #if __BYTE_ORDER == __LITTLE_ENDIAN #define htonll(x) __bswap_64 (x) +#else +#define htonll(x) (x) #endif #endif