Add a patch to fix compilation on big endian systems.

Noticed by:	kris
Approved by:	maintainer
This commit is contained in:
Stefan Walter 2006-09-17 09:10:36 +00:00
parent 9c4fbdd2fe
commit 3941420173
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173225
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- dm_md5.c.orig Sat Sep 16 20:42:05 2006
+++ dm_md5.c Sat Sep 16 20:44:42 2006
@@ -42,6 +42,8 @@
#include "dbmail.h"
+typedef unsigned int uint32;
+
/* If endian.h is present, it will tell us, otherwise
* autoconf's AC_C_BIGENDIAN will have tested the host. */
#if (BYTE_ORDER == LITTLE_ENDIAN) || !defined(WORDS_BIGENDIAN)
@@ -63,8 +65,6 @@
}
#endif
-
-typedef unsigned int uint32;
struct GdmMD5Context {
uint32 buf[4];

View file

@ -0,0 +1,20 @@
--- dm_md5.c.orig Sat Sep 16 20:42:05 2006
+++ dm_md5.c Sat Sep 16 20:44:42 2006
@@ -42,6 +42,8 @@
#include "dbmail.h"
+typedef unsigned int uint32;
+
/* If endian.h is present, it will tell us, otherwise
* autoconf's AC_C_BIGENDIAN will have tested the host. */
#if (BYTE_ORDER == LITTLE_ENDIAN) || !defined(WORDS_BIGENDIAN)
@@ -63,8 +65,6 @@
}
#endif
-
-typedef unsigned int uint32;
struct GdmMD5Context {
uint32 buf[4];