summaryrefslogtreecommitdiff
path: root/mail/mutt/patches/patch-ah
blob: 0041cdfb91ff24195fc3878629ba230ed185886f (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
29
30
31
$NetBSD: patch-ah,v 1.2 2001/01/10 17:45:32 tron Exp $

--- imap/md5.h.orig	Fri Aug 20 10:24:06 1999
+++ imap/md5.h	Wed Jan 10 18:30:43 2001
@@ -26,14 +26,24 @@
 #ifndef MD5_H
 #define MD5_H 1
 
+#include <sys/types.h>
+
 /* POINTER defines a generic pointer type */
 typedef unsigned char *POINTER;
 
 /* UINT2 defines a two byte word */
-typedef unsigned short int UINT2;
+#ifdef __sun__
+typedef uint16_t UINT2;
+#else
+typedef u_int16_t UINT2;
+#endif
 
 /* UINT4 defines a four byte word */
-typedef unsigned long int UINT4;
+#ifdef __sun__
+typedef uint32_t UINT4;
+#else
+typedef u_int32_t UINT4;
+#endif
 
 /* MD5 context. */
 typedef struct {