From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93711138332 for ; Fri, 23 Mar 2018 20:17:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E629E09DB; Fri, 23 Mar 2018 20:17:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5A3D8E09DB for ; Fri, 23 Mar 2018 20:17:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3645F335C78 for ; Fri, 23 Mar 2018 20:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9EF2F239 for ; Fri, 23 Mar 2018 20:17:42 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1521822359.56f9a5d07c39ce39d1e66af44bdcb370071e48de.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/hash_fd.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 56f9a5d07c39ce39d1e66af44bdcb370071e48de X-VCS-Branch: master Date: Fri, 23 Mar 2018 20:17:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 03ffd303-4ebb-40da-93ed-bf023e39cc44 X-Archives-Hash: f310d7ab8de918228fb71fcbcbb89dbd commit: 56f9a5d07c39ce39d1e66af44bdcb370071e48de Author: Fabian Groffen gentoo org> AuthorDate: Fri Mar 23 16:25:59 2018 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Fri Mar 23 16:25:59 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=56f9a5d0 hash_fd: induce byteorder on Solaris too libq/hash_fd.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libq/hash_fd.c b/libq/hash_fd.c index 49e3af5..a88d756 100644 --- a/libq/hash_fd.c +++ b/libq/hash_fd.c @@ -31,7 +31,17 @@ #ifdef HAVE_SYS_PARAM_H # include # ifndef __BYTE_ORDER -# define __BYTE_ORDER BYTE_ORDER +# ifdef BYTE_ORDER +# define __BYTE_ORDER BYTE_ORDER +# elif defined(_LITTLE_ENDIAN) +# define __LITTLE_ENDIAN 1234 +# define __BIG_ENDIAN 4321 +# define __BYTE_ORDER __LITTLE_ENDIAN +# elif defined(_BIG_ENDIAN) +# define __LITTLE_ENDIAN 1234 +# define __BIG_ENDIAN 4321 +# define __BYTE_ORDER __BIG_ENDIAN +# endif # endif # ifndef __BIG_ENDIAN # define __BIG_ENDIAN BIG_ENDIAN