summaryrefslogtreecommitdiff
path: root/mail/ja-mh/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-03-15 14:05:52 +0000
committerwiz <wiz@pkgsrc.org>2005-03-15 14:05:52 +0000
commitf3ecdbf6f4e713aeb5bc9526141831da09ce66c8 (patch)
tree37445253d423e69d5ebf692caa909df6032e383f /mail/ja-mh/patches
parent4ee89ff5d6449fd79049ff06a8c7cdeee7ba6920 (diff)
downloadpkgsrc-f3ecdbf6f4e713aeb5bc9526141831da09ce66c8.tar.gz
Fix md5 code on 64-bit platforms by properly defining UINT4.
Closes PR 28755 by HATANO Hiromichi. Bump PKGREVISION to identify fixed versions.
Diffstat (limited to 'mail/ja-mh/patches')
-rw-r--r--mail/ja-mh/patches/patch-aa26
1 files changed, 26 insertions, 0 deletions
diff --git a/mail/ja-mh/patches/patch-aa b/mail/ja-mh/patches/patch-aa
new file mode 100644
index 00000000000..d6fc4dc3bf0
--- /dev/null
+++ b/mail/ja-mh/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.3 2005/03/15 14:05:52 wiz Exp $
+
+--- h/md5.h.orig 1999-02-09 12:30:00.000000000 +0100
++++ h/md5.h
+@@ -13,6 +13,8 @@ The following makes PROTOTYPES default t
+ #define PROTOTYPES 0
+ #endif
+
++#include <inttypes.h>
++
+ /* POINTER defines a generic pointer type */
+ typedef unsigned char *POINTER;
+
+@@ -20,11 +22,7 @@ typedef unsigned char *POINTER;
+ typedef unsigned short int UINT2;
+
+ /* UINT4 defines a four byte word */
+-#ifndef __alpha
+-typedef unsigned long int UINT4;
+-#else
+-typedef unsigned int UINT4;
+-#endif
++typedef uint32_t UINT4;
+
+ /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
+ If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it