Mailinglist Archive: opensuse-buildservice (306 mails)

< Previous Next >
[opensuse-buildservice] Re: [PATCH 1/4] Fix endianess selection
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Mon, 28 Jun 2010 12:01:03 +0200
  • Message-id: <201006281201.03546.adrian@xxxxxxx>

all 4 patches applied in master branch.

thanks
adrian

On Monday 28 June 2010 09:21:25 Jan Engelhardt wrote:
Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
sign.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/sign.c b/sign.c
index e372ba4..76649e9 100644
--- a/sign.c
+++ b/sign.c
@@ -33,7 +33,12 @@ int port = MYPORT;
#define RPMSIGTAG_MD5 1004
#define RPMSIGTAG_GPG 1005

-#undef BIG_ENDIAN_HOST
+#include <endian.h>
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+# undef BIG_ENDIAN_HOST
+#else
+# define BIG_ENDIAN_HOST 1
+#endif


/* sha1.c - SHA1 hash function


--

Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
References