diff options
author | tron <tron@pkgsrc.org> | 2006-01-23 18:46:00 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2006-01-23 18:46:00 +0000 |
commit | 0ebea1543bbe7d3aaf9d412af78d20557625999c (patch) | |
tree | 545e69d728b5d10084823c9f045c5722539beff0 | |
parent | b032c82c218cce06cfc050097b94a15757bc53f9 (diff) | |
download | pkgsrc-0ebea1543bbe7d3aaf9d412af78d20557625999c.tar.gz |
Add patch from CVS repository to make GCC 4.x happy. This will
hopefully fix build problems under DragonFly.
-rw-r--r-- | net/cia/distinfo | 3 | ||||
-rw-r--r-- | net/cia/patches/patch-ac | 31 |
2 files changed, 33 insertions, 1 deletions
diff --git a/net/cia/distinfo b/net/cia/distinfo index 7032a48342b..97894060ec6 100644 --- a/net/cia/distinfo +++ b/net/cia/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.7 2005/02/24 12:13:43 agc Exp $ +$NetBSD: distinfo,v 1.8 2006/01/23 18:46:00 tron Exp $ SHA1 (cia-20030922.tar.bz2) = 9d0b06c99c6943493ff47412bcb36efde67e40ca RMD160 (cia-20030922.tar.bz2) = 9f41f8ff057b3f022f5678cca7401ac9e7fe478a Size (cia-20030922.tar.bz2) = 7645 bytes SHA1 (patch-aa) = 6b56f84481813df9dc0bd8044d51d2f857cbaf5a SHA1 (patch-ab) = da697a1a5222bd0241ea43e7ce5d071b7932af89 +SHA1 (patch-ac) = 17e2a2bc343a980149b26340a43994474473f186 diff --git a/net/cia/patches/patch-ac b/net/cia/patches/patch-ac new file mode 100644 index 00000000000..f89de44cf53 --- /dev/null +++ b/net/cia/patches/patch-ac @@ -0,0 +1,31 @@ +$NetBSD: patch-ac,v 1.1 2006/01/23 18:46:00 tron Exp $ + +Index: ipstat/config.c +=================================================================== +RCS file: /share/cvsroot/net/ipstat/ipstat/config.c,v +retrieving revision 1.6 +retrieving revision 1.7 +diff -u -r1.6 -r1.7 +--- ipstat/config.c 30 Dec 2004 21:41:39 -0000 1.6 ++++ ipstat/config.c 23 Jan 2006 13:13:56 -0000 1.7 +@@ -312,8 +312,8 @@ + { + struct in_addr *Addr,*Mask; + +- Addr=&((Type==0)?Mt->m_SrcAddr:Mt->m_DstAddr); +- Mask=&((Type==0)?Mt->m_SrcMask:Mt->m_DstMask); ++ Addr=((Type==0)?&Mt->m_SrcAddr:&Mt->m_DstAddr); ++ Mask=((Type==0)?&Mt->m_SrcMask:&Mt->m_DstMask); + if (!ParseNet(*Arg,Addr,Mask)) + { + (void)fprintf(stderr, +@@ -362,7 +362,8 @@ + return FALSE; + } + +- ((Type==3)?Mt->m_SrcPort:Mt->m_DstPort)=Port; ++ if (Type==3) Mt->m_SrcPort=Port; ++ else Mt->m_DstPort=Port; + } + } + |