pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/metamail Fix some evil C code to make this build ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a92e4789b79
branches:  trunk
changeset: 506577:7a92e4789b79
user:      tron <tron%pkgsrc.org@localhost>
date:      Thu Jan 19 10:55:30 2006 +0000

description:
Fix some evil C code to make this build with GCC 4.x.

diffstat:

 mail/metamail/distinfo         |   3 ++-
 mail/metamail/patches/patch-ar |  31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletions(-)

diffs (49 lines):

diff -r c673be026e9d -r 7a92e4789b79 mail/metamail/distinfo
--- a/mail/metamail/distinfo    Thu Jan 19 10:21:12 2006 +0000
+++ b/mail/metamail/distinfo    Thu Jan 19 10:55:30 2006 +0000
@@ -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-ao) = 90566d47642fe8ee71295ea47f3cf7420d0b2880
 SHA1 (patch-ap) = ade6fba2254e7db3f9cf52acf453bb512c0a3d32
 SHA1 (patch-aq) = 90f84381aaf91db03cecef84d9433c3ffd1152db
+SHA1 (patch-ar) = 21e137edd2bb1dc09048f7ef23e86859d698d848
diff -r c673be026e9d -r 7a92e4789b79 mail/metamail/patches/patch-ar
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/metamail/patches/patch-ar    Thu Jan 19 10:55:30 2006 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index