summaryrefslogtreecommitdiff
blob: f20990bf4230106e653bd295789ccbce8feb84dd (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
32
33
34
35
36
37
38
39
40
41
42
43
diff -Nur dcfldd-1.2.4/md5.c dcfldd-1.2.4.fixed/md5.c
--- dcfldd-1.2.4/md5.c	2005-05-10 00:56:15.000000000 +0100
+++ dcfldd-1.2.4.fixed/md5.c	2005-10-11 22:33:20.091158683 +0100
@@ -31,6 +31,18 @@
  **********************************************************************
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif /* HAVE_CONFIG_H */
+
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+#  include <stdint.h>
+# endif
+#endif
+
 /* -- include the following line if the md5.h header file is separate -- */
 #include "md5.h"
 
diff -Nur dcfldd-1.2.4/md5.h dcfldd-1.2.4.fixed/md5.h
--- dcfldd-1.2.4/md5.h	2005-05-10 00:56:15.000000000 +0100
+++ dcfldd-1.2.4.fixed/md5.h	2005-10-11 22:33:57.261568986 +0100
@@ -39,8 +39,16 @@
 #ifndef MD5_H
 #define MD5_H
 
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+#  include <stdint.h>
+# endif
+#endif
+
 /* typedef a 32 bit type */
-typedef unsigned long int UINT4;
+typedef uint32_t UINT4;
 
 #define MD5_DIGEST_STRING_LENGTH 32