summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/dcfldd/files/dcfldd-1.2.4_md5_amd64_fix.patch')
-rw-r--r--sys-apps/dcfldd/files/dcfldd-1.2.4_md5_amd64_fix.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-apps/dcfldd/files/dcfldd-1.2.4_md5_amd64_fix.patch b/sys-apps/dcfldd/files/dcfldd-1.2.4_md5_amd64_fix.patch
new file mode 100644
index 000000000000..f20990bf4230
--- /dev/null
+++ b/sys-apps/dcfldd/files/dcfldd-1.2.4_md5_amd64_fix.patch
@@ -0,0 +1,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
+