source: packages/mail/fetchmail/patches/001-Fixup-MD5-transition.patch @ 25228

Last change on this file since 25228 was 25228, checked in by florian, 6 years ago

[package] fetchmail: fixup md5 transition

this patch is cherry-pick from upstream:

this patch fixed this error:

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

File size: 389 bytes
  • fm_md5.h

    a b  
    66#include <sys/types.h> 
    8 #ifdef HAVE_MD5_H 
    9 #include <md5.h> 
    10 #else 
    118#include "fetchmail.h" 
    12 #ifndef HEADER_MD5_H 
    13 /* Try to avoid clashes with OpenSSL */ 
    14 #define HEADER_MD5_H  
    15 #endif 
    1810#if SIZEOF_INT == 4 
    1911typedef unsigned int uint32; 
    3729 */ 
    3830typedef struct MD5Context MD5_CTX; 
    40 #endif 
    4132#endif /* !MD5_H */ 
Note: See TracBrowser for help on using the repository browser.