[package] fetchmail: fixup md5 transition
authorFlorian Fainelli <florian@openwrt.org>
Sat, 29 Jan 2011 02:14:51 +0000 (02:14 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 29 Jan 2011 02:14:51 +0000 (02:14 +0000)
this patch is cherry-pick from upstream:
  http://gitorious.org/fetchmail/fetchmail/commit/738dcc102db67a741893e2979c034df9904e2925

this patch fixed this error:
  http://tksite.gotdns.org:8010/broken_packages/xburst/fetchmail/compile.txt
~~~
mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I.  -I./libesmtp -I/home/buildslave/openwrt1/xburst/build/staging_dir/target-mipsel_uClibc-0.9.31/usr/include -I/home/buildslave/openwrt1/xburst/build/staging_dir/target-mipsel_uClibc-0.9.31/include -I/home/buildslave/openwrt1/xburst/build/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.31/usr/include -I/home/buildslave/openwrt1/xburst/build/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.31/include   -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float  -MT md5c.o -MD -MP -MF .deps/md5c.Tpo -c -o md5c.o md5c.c
md5c.c:44: warning: 'struct MD5Context' declared inside parameter list
md5c.c:44: warning: its scope is only this definition or declaration, which is probably not what you want
md5c.c: In function 'MD5Init':
md5c.c:46: error: dereferencing pointer to incomplete type
md5c.c:47: error: dereferencing pointer to incomplete type
~~~

SVN-Revision: 25228

mail/fetchmail/patches/001-Fixup-MD5-transition.patch [new file with mode: 0644]

diff --git a/mail/fetchmail/patches/001-Fixup-MD5-transition.patch b/mail/fetchmail/patches/001-Fixup-MD5-transition.patch
new file mode 100644 (file)
index 0000000..e96b176
--- /dev/null
@@ -0,0 +1,25 @@
+--- a/fm_md5.h
++++ b/fm_md5.h
+@@ -5,16 +5,8 @@
+ #include <sys/types.h>
+-#ifdef HAVE_MD5_H
+-#include <md5.h>
+-#else
+ #include "fetchmail.h"
+-#ifndef HEADER_MD5_H
+-/* Try to avoid clashes with OpenSSL */
+-#define HEADER_MD5_H 
+-#endif
+-
+ #if SIZEOF_INT == 4
+ typedef unsigned int uint32;
+ #else
+@@ -37,6 +29,5 @@
+  */
+ typedef struct MD5Context MD5_CTX;
+-#endif
+ #endif /* !MD5_H */