Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 4B2C87F3F for ; Tue, 29 Oct 2013 22:55:54 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id CCD2DAC0A4 for ; Tue, 29 Oct 2013 20:55:50 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id seRdciVmCeZuTzw7 for ; Tue, 29 Oct 2013 20:55:46 -0700 (PDT) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9U3tksr028981 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 29 Oct 2013 23:55:46 -0400 From: Eryu Guan Subject: [PATCH] xfstests: fix compile error of src/fssum.c on bigendian host Date: Wed, 30 Oct 2013 11:55:43 +0800 Message-Id: <1383105343-15348-1-git-send-email-eguan@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Cc: Eryu Guan 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 --- src/fssum.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fssum.c b/src/fssum.c index c75ff8b..c26d32b 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 -- 1.8.3.1 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs