From 4aff8f993484cd73b3eb3b3abe30b1f1884c9000 Mon Sep 17 00:00:00 2001 From: hans Date: Thu, 16 Feb 2012 16:13:51 +0000 Subject: Fix build on SunOS. --- chat/xaric/distinfo | 4 +++- chat/xaric/patches/patch-source_iflist.c | 15 +++++++++++++++ chat/xaric/patches/patch-source_ircterm.c | 17 +++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 chat/xaric/patches/patch-source_iflist.c create mode 100644 chat/xaric/patches/patch-source_ircterm.c (limited to 'chat/xaric') diff --git a/chat/xaric/distinfo b/chat/xaric/distinfo index 8935be0c427..937ebfd1524 100644 --- a/chat/xaric/distinfo +++ b/chat/xaric/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2011/12/17 10:14:52 sbd Exp $ +$NetBSD: distinfo,v 1.7 2012/02/16 16:13:51 hans Exp $ SHA1 (xaric-0.12.1.tar.gz) = d01fc8d8189e18f3824cdccb539a97c1862ecdbe RMD160 (xaric-0.12.1.tar.gz) = b78cd4496510642a967b1d173e150d3cbe836b5c @@ -6,3 +6,5 @@ Size (xaric-0.12.1.tar.gz) = 435998 bytes SHA1 (patch-Makefile.in) = 48dbe2a994c7192bebbf47847380692a35e91f29 SHA1 (patch-aa) = 25948e1723987bf93f713895d6f8ac5d23a1e404 SHA1 (patch-ab) = 33e89f44a22ed2ad3b14546e9f669013eb503ddd +SHA1 (patch-source_iflist.c) = bb5d38525bbf45caeaf04ce3ac88196ba2001e6f +SHA1 (patch-source_ircterm.c) = a9350d030d3c9312df13af0a1826edc1755e784e diff --git a/chat/xaric/patches/patch-source_iflist.c b/chat/xaric/patches/patch-source_iflist.c new file mode 100644 index 00000000000..c7a37fbd2b8 --- /dev/null +++ b/chat/xaric/patches/patch-source_iflist.c @@ -0,0 +1,15 @@ +$NetBSD: patch-source_iflist.c,v 1.1 2012/02/16 16:13:51 hans Exp $ + +--- source/iflist.c.orig 2001-11-24 09:07:57.000000000 +0100 ++++ source/iflist.c 2012-01-24 20:36:11.838890687 +0100 +@@ -38,6 +38,10 @@ + # include + #endif + ++#ifdef __sun ++#include ++#endif ++ + #include "irc.h" + #include "ircaux.h" + #include "iflist.h" diff --git a/chat/xaric/patches/patch-source_ircterm.c b/chat/xaric/patches/patch-source_ircterm.c new file mode 100644 index 00000000000..170a912ae7b --- /dev/null +++ b/chat/xaric/patches/patch-source_ircterm.c @@ -0,0 +1,17 @@ +$NetBSD: patch-source_ircterm.c,v 1.1 2012/02/16 16:13:51 hans Exp $ + +--- source/ircterm.c.orig 2001-11-24 09:07:57.000000000 +0100 ++++ source/ircterm.c 2012-01-24 20:14:53.277926058 +0100 +@@ -99,10 +99,12 @@ static int term_LE_cursor_left (void); + static int term_null_function (void); + + /* these are missing on some systems */ ++#ifndef __sun + extern char *tgetstr (); + extern int tgetent (); + extern char *getenv (); + extern char *tgoto(const char *, int, int); ++#endif + + + /* Setup the low level terminal disipline */ -- cgit v1.2.3