From af9d481116a8249ba08e5a2efa10839bf22fe075 Mon Sep 17 00:00:00 2001 From: beech Date: Thu, 21 Feb 2008 09:16:10 +0000 Subject: - Fix build with amd64/7.x PR: ports/120340 Submitted by: Stefan `Sec` Zehl Approved by: maintainer timeout (two weeks) --- irc/ircII/Makefile | 9 ++------- irc/ircII/files/patch-source_mksiginc.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 irc/ircII/files/patch-source_mksiginc.c (limited to 'irc') diff --git a/irc/ircII/Makefile b/irc/ircII/Makefile index b6b3a541bb24..c88b4622ac9a 100644 --- a/irc/ircII/Makefile +++ b/irc/ircII/Makefile @@ -7,6 +7,7 @@ PORTNAME= ircii PORTVERSION= 20060725 +PORTREVISION= 1 CATEGORIES= irc ipv6 MASTER_SITES= ftp://ftp.warped.com/pub/ircII/ \ ftp://ftp.irc.org/irc/clients/unix/ircII/ @@ -23,10 +24,4 @@ MAN1= irc.1 ircII.1 ircbug.1 PLIST_SUB= VERSION="${PORTVERSION}" -.include - -.if ${ARCH} == "amd64" && ${OSVERSION} >= 700000 -BROKEN= Doesn't build -.endif - -.include +.include diff --git a/irc/ircII/files/patch-source_mksiginc.c b/irc/ircII/files/patch-source_mksiginc.c new file mode 100644 index 000000000000..ab64430bc7e3 --- /dev/null +++ b/irc/ircII/files/patch-source_mksiginc.c @@ -0,0 +1,15 @@ +--- source/mksiginc.c.orig 2004-02-16 01:00:58.000000000 -0900 ++++ source/mksiginc.c 2008-02-14 00:14:47.000000000 -0900 +@@ -38,8 +38,11 @@ + #ifndef NSIG + #define NSIG 64 + #endif +- ++#if defined(SIGRTMAX) && (SIGRTMAX > NSIG) ++#define MAXSIG SIGRTMAX+1 ++#else + #define MAXSIG NSIG+1 ++#endif + char *signames[MAXSIG]; + + int main(int, char *[], char *[]); -- cgit