From 57f53161c4336c3ab0b6dc7b9b2b99beda3874cd Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 17 Mar 2007 14:19:59 +0000 Subject: Fixed build error with gcc4. --- chat/epic4/distinfo | 3 ++- chat/epic4/patches/patch-aa | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 chat/epic4/patches/patch-aa (limited to 'chat/epic4') diff --git a/chat/epic4/distinfo b/chat/epic4/distinfo index 4c85d6d5e62..323c473c663 100644 --- a/chat/epic4/distinfo +++ b/chat/epic4/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.9 2005/04/04 08:56:54 wiz Exp $ +$NetBSD: distinfo,v 1.10 2007/03/17 14:19:59 rillig Exp $ SHA1 (epic4-2.2.tar.bz2) = 88d4140e693b571ceb8148f98d504a5fefa74076 RMD160 (epic4-2.2.tar.bz2) = 8f1f1b446bd3260e665093864f1becc0b625be32 Size (epic4-2.2.tar.bz2) = 623254 bytes +SHA1 (patch-aa) = c00699223db490c044d07754d73078c4f768e3a3 diff --git a/chat/epic4/patches/patch-aa b/chat/epic4/patches/patch-aa new file mode 100644 index 00000000000..10a0ede1661 --- /dev/null +++ b/chat/epic4/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.3 2007/03/17 14:19:59 rillig Exp $ + +gcc4 complains: +term.c:98: error: conflicting types for 'tparm' +term.c:98: note: a parameter list with an ellipsis can't match an empty parameter name list declaration +./../include/compat.h:10: error: previous declaration of 'tparm' was here + +--- source/term.c.orig 2003-12-03 23:17:40.000000000 +0100 ++++ source/term.c 2007-03-17 15:16:22.000000000 +0100 +@@ -94,8 +94,7 @@ extern int tgetflag(); + #define Tgetflag(x) tgetflag(x.tname) + #endif + +-extern char *getenv(); +-extern char *tparm(); ++#include + + /* + * The old code assumed termcap. termcap is almost always present, but on -- cgit v1.2.3