Mailinglist Archive: opensuse-buildservice (306 mails)

< Previous Next >
[opensuse-buildservice] [PATCH 1/4] Fix endianess selection
  • From: Jan Engelhardt <jengelh@xxxxxxxxxx>
  • Date: Mon, 28 Jun 2010 09:21:25 +0200
  • Message-id: <1277709689-4095-1-git-send-email-jengelh@xxxxxxxxxx>
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
--
1.7.1

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

< Previous Next >