pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/shells/posh Fix build with gcc2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/020213c6f20a
branches:  trunk
changeset: 480393:020213c6f20a
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Wed Sep 08 12:00:09 2004 +0000

description:
Fix build with gcc2.

diffstat:

 shells/posh/distinfo         |   3 ++-
 shells/posh/patches/patch-aa |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 729cd1245d76 -r 020213c6f20a shells/posh/distinfo
--- a/shells/posh/distinfo      Wed Sep 08 11:59:09 2004 +0000
+++ b/shells/posh/distinfo      Wed Sep 08 12:00:09 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.2 2004/08/29 14:47:07 recht Exp $
+$NetBSD: distinfo,v 1.3 2004/09/08 12:00:09 jmmv Exp $
 
 SHA1 (posh_0.3.9.tar.gz) = 8ae9e3b0dee08b2a6ccd694000fad49cec3678b0
 Size (posh_0.3.9.tar.gz) = 727145 bytes
+SHA1 (patch-aa) = bdd8ffb67ccd60064b0fb5bda7935001f6807380
diff -r 729cd1245d76 -r 020213c6f20a shells/posh/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/posh/patches/patch-aa      Wed Sep 08 12:00:09 2004 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1 2004/09/08 12:00:09 jmmv Exp $
+
+--- src/builtins.c.orig        2004-09-08 13:54:59.000000000 +0200
++++ src/builtins.c
+@@ -450,6 +450,8 @@ int posh_builtin_exitreturn(int argc, ch
+ 
+ static void ers_walk(const void *nodep, const VISIT which, const int UNUSED(depth)) {
+       struct tbl *vp;
++      struct tbl *tvp;
++      int any_set = 0;
+ 
+       switch(which) {
+               case preorder:
+@@ -460,8 +458,6 @@ static void ers_walk(const void *nodep, 
+               case postorder:
+               case leaf:
+                       vp = *(struct tbl **)nodep;
+-                      struct tbl *tvp;
+-                      int any_set = 0;
+                       /*
+                        * See if the parameter is set (for arrays, if any
+                        * element is set).



Home | Main Index | Thread Index | Old Index