summaryrefslogtreecommitdiff
path: root/mail/metamail
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-01-19 10:55:30 +0000
committertron <tron@pkgsrc.org>2006-01-19 10:55:30 +0000
commit722fc702a2e8ced8a231425390f13555f0de1c05 (patch)
tree17028060839ef6747c1e6b83c14d3da7c33885cd /mail/metamail
parent79e148d60b9c2d98c3289f4f4a5733b48e3c433d (diff)
downloadpkgsrc-722fc702a2e8ced8a231425390f13555f0de1c05.tar.gz
Fix some evil C code to make this build with GCC 4.x.
Diffstat (limited to 'mail/metamail')
-rw-r--r--mail/metamail/distinfo3
-rw-r--r--mail/metamail/patches/patch-ar31
2 files changed, 33 insertions, 1 deletions
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 <stdio.h>
+ #include <ctype.h>
+ #include <signal.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "richlex.h"
+ #include "richset.h"
+ #include <config.h>
+@@ -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);