From 2d1819f305f43e900bbacc6c4e433b8a55169921 Mon Sep 17 00:00:00 2001 From: naddy Date: Thu, 26 Mar 2009 17:38:26 +0000 Subject: [PATCH] declare variable at top of block; fixes build with gcc2 --- net/ii/Makefile | 3 ++- net/ii/patches/patch-ii_c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 net/ii/patches/patch-ii_c diff --git a/net/ii/Makefile b/net/ii/Makefile index d0067387ece..ef5cedb45dd 100644 --- a/net/ii/Makefile +++ b/net/ii/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2007/09/20 19:15:00 jasper Exp $ +# $OpenBSD: Makefile,v 1.2 2009/03/26 17:38:26 naddy Exp $ COMMENT= minimalist IRC client DISTNAME= ii-1.3 +PKGNAME= ${DISTNAME}p0 CATEGORIES= net HOMEPAGE= http://www.suckless.org/wiki/tools/irc diff --git a/net/ii/patches/patch-ii_c b/net/ii/patches/patch-ii_c new file mode 100644 index 00000000000..4135d4489b9 --- /dev/null +++ b/net/ii/patches/patch-ii_c @@ -0,0 +1,14 @@ +$OpenBSD: patch-ii_c,v 1.1 2009/03/26 17:38:26 naddy Exp $ +--- ii.c.orig Thu Mar 26 11:22:40 2009 ++++ ii.c Thu Mar 26 11:23:00 2009 +@@ -394,8 +394,9 @@ static int read_line(int fd, size_t res_len, char *buf + static void handle_channels_input(Channel *c) { + static char buf[PIPE_BUF]; + if(read_line(c->fd, PIPE_BUF, buf) == -1) { ++ int fd; + close(c->fd); +- int fd = open_channel(c->name); ++ fd = open_channel(c->name); + if(fd != -1) + c->fd = fd; + else