summaryrefslogtreecommitdiff
path: root/mail/metamail/patches
diff options
context:
space:
mode:
authortron <tron>2006-01-19 10:55:30 +0000
committertron <tron>2006-01-19 10:55:30 +0000
commit9edaed8221159f532eb87f259f7eaaf4cfe6e6f0 (patch)
tree17028060839ef6747c1e6b83c14d3da7c33885cd /mail/metamail/patches
parente92b639fe966d3cd5b2c00726d16689d152f1be9 (diff)
downloadpkgsrc-9edaed8221159f532eb87f259f7eaaf4cfe6e6f0.tar.gz
Fix some evil C code to make this build with GCC 4.x.
Diffstat (limited to 'mail/metamail/patches')
-rw-r--r--mail/metamail/patches/patch-ar31
1 files changed, 31 insertions, 0 deletions
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);