From owner-svn-src-all@FreeBSD.ORG Thu Sep 19 06:31:03 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AC2D7D19; Thu, 19 Sep 2013 06:31:03 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9A91D25EE; Thu, 19 Sep 2013 06:31:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8J6V3pv059415; Thu, 19 Sep 2013 06:31:03 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8J6V3RI059414; Thu, 19 Sep 2013 06:31:03 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201309190631.r8J6V3RI059414@svn.freebsd.org> From: Dimitry Andric Date: Thu, 19 Sep 2013 06:31:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255696 - head/usr.bin/svn/lib/libapr X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2013 06:31:03 -0000 Author: dim Date: Thu Sep 19 06:31:03 2013 New Revision: 255696 URL: http://svnweb.freebsd.org/changeset/base/255696 Log: Make svnlite (actually libapr) work correctly on big-endian arches. Otherwise, you would get errors similar to: $ svn co svn://svn.freebsd.org/base/head test A test/lib A test/lib/libutil svn: E200014: Checksum mismatch for '/home/dim/test/lib/libutil/kinfo_getproc.3': expected: 0882097a545210d88edff8f63b328602 actual: b378eb08a0f4d4c97c513c4b17207f59 Approved by: re (gjb, marius) Modified: head/usr.bin/svn/lib/libapr/apr.h Modified: head/usr.bin/svn/lib/libapr/apr.h ============================================================================== --- head/usr.bin/svn/lib/libapr/apr.h Thu Sep 19 06:19:24 2013 (r255695) +++ head/usr.bin/svn/lib/libapr/apr.h Thu Sep 19 06:31:03 2013 (r255696) @@ -373,7 +373,13 @@ typedef apr_uint32_t apr_uin #endif /* Are we big endian? */ +#if _BYTE_ORDER == _LITTLE_ENDIAN #define APR_IS_BIGENDIAN 0 +#elif _BYTE_ORDER == _BIG_ENDIAN +#define APR_IS_BIGENDIAN 1 +#else +#error Unknown byte order. +#endif /* Mechanisms to properly type numeric literals */ #define APR_INT64_C(val) INT64_C(val)