From 722fc702a2e8ced8a231425390f13555f0de1c05 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 19 Jan 2006 10:55:30 +0000 Subject: Fix some evil C code to make this build with GCC 4.x. --- mail/metamail/distinfo | 3 ++- mail/metamail/patches/patch-ar | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 mail/metamail/patches/patch-ar (limited to 'mail/metamail') diff --git a/mail/metamail/distinfo b/mail/metamail/distinfo index e58eb59e3a6..e866b8194ba 100644 --- a/mail/metamail/distinfo +++ b/mail/metamail/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.16 2005/11/21 09:47:45 rillig Exp $ +$NetBSD: distinfo,v 1.17 2006/01/19 10:55:30 tron Exp $ SHA1 (mm2.7.tar.Z) = 8f213baec9b17c05bcb066f616977a561757d7a6 RMD160 (mm2.7.tar.Z) = ae322cad0653140cbe7f0148ce48757df98c26b0 @@ -20,3 +20,4 @@ SHA1 (patch-an) = 56c228106dc663623cb31ecf4eeba1fc5c27d045 SHA1 (patch-ao) = 90566d47642fe8ee71295ea47f3cf7420d0b2880 SHA1 (patch-ap) = ade6fba2254e7db3f9cf52acf453bb512c0a3d32 SHA1 (patch-aq) = 90f84381aaf91db03cecef84d9433c3ffd1152db +SHA1 (patch-ar) = 21e137edd2bb1dc09048f7ef23e86859d698d848 diff --git a/mail/metamail/patches/patch-ar b/mail/metamail/patches/patch-ar new file mode 100644 index 00000000000..986eacc1b46 --- /dev/null +++ b/mail/metamail/patches/patch-ar @@ -0,0 +1,31 @@ +$NetBSD: patch-ar,v 1.1 2006/01/19 10:55:30 tron Exp $ + +--- richmail/richtext.c.orig 1994-02-09 16:31:18.000000000 +0000 ++++ richmail/richtext.c 2006-01-19 10:51:42.000000000 +0000 +@@ -16,6 +16,8 @@ + #include + #include + #include ++#include ++#include + #include "richlex.h" + #include "richset.h" + #include +@@ -79,6 +81,8 @@ + extern tputs(); + #endif + ++static int lc2strcmp(char *s1, char *s2); ++ + static outputc(), realoutputc(), MakeWorkingMargins(), Pause(), fputsmovingright(), ResetTerminalCodes(), FinalizeTerminal(), outputstr(), FPUTS(); + + #define OUTC(c) (outputc((RCHAR)(c))) +@@ -989,7 +993,7 @@ + while(*s) (*RichtextPutc)((int)(*s++),fp); + } + +-static lc2strcmp(s1, s2) ++static int lc2strcmp(s1, s2) + char *s1, *s2; + { + if (!s1 || !s2) return (-1); -- cgit v1.2.3