diff options
author | rillig <rillig> | 2007-03-17 14:19:59 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-03-17 14:19:59 +0000 |
commit | c133252d2fc717f9847bfa9277353e17ce388e8a (patch) | |
tree | 7f94d43e21cf439bdcadf9b6855509c6f94d7569 /chat/epic4/patches | |
parent | 165a525203e2c97db7b0778f8f5233212dc10f8d (diff) | |
download | pkgsrc-c133252d2fc717f9847bfa9277353e17ce388e8a.tar.gz |
Fixed build error with gcc4.
Diffstat (limited to 'chat/epic4/patches')
-rw-r--r-- | chat/epic4/patches/patch-aa | 19 |
1 files changed, 19 insertions, 0 deletions
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 <stdlib.h> + + /* + * The old code assumed termcap. termcap is almost always present, but on |