summaryrefslogtreecommitdiff
path: root/mail/ja-mh/patches/patch-aa
blob: 83698242dcd3b9e315314d604cb9780a41d06ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-aa,v 1.4 2010/09/27 12:01:49 taca Exp $

* Proper integer size.

--- 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