SOURCES: libmd5-endian.patch (NEW) - glibc knows endianness at compile time
qboosh
qboosh at pld-linux.org
Wed Sep 17 20:42:38 CEST 2008
Author: qboosh Date: Wed Sep 17 18:42:38 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- glibc knows endianness at compile time
---- Files affected:
SOURCES:
libmd5-endian.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/libmd5-endian.patch
diff -u /dev/null SOURCES/libmd5-endian.patch:1.1
--- /dev/null Wed Sep 17 20:42:39 2008
+++ SOURCES/libmd5-endian.patch Wed Sep 17 20:42:32 2008
@@ -0,0 +1,18 @@
+--- libmd5-20020413/md5.c.orig 2002-04-13 21:20:28.000000000 +0200
++++ libmd5-20020413/md5.c 2008-09-17 20:03:17.739629583 +0200
+@@ -53,10 +53,13 @@
+
+ #include "md5.h"
+ #include <string.h>
++#include <endian.h>
+
+ #undef BYTE_ORDER /* 1 = big-endian, -1 = little-endian, 0 = unknown */
+-#ifdef ARCH_IS_BIG_ENDIAN
+-# define BYTE_ORDER (ARCH_IS_BIG_ENDIAN ? 1 : -1)
++#if __BYTE_ORDER == __LITTLE_ENDIAN
++# define BYTE_ORDER -1
++#elif __BYTE_ORDER == __BIG_ENDIAN
++# define BYTE_ORDER 1
+ #else
+ # define BYTE_ORDER 0
+ #endif
================================================================
More information about the pld-cvs-commit
mailing list