summaryrefslogtreecommitdiff
path: root/chat/blackened
diff options
context:
space:
mode:
authordholland <dholland>2015-11-07 21:16:36 +0000
committerdholland <dholland>2015-11-07 21:16:36 +0000
commite49975559989bbc9034ea009537862a1f4ef4523 (patch)
tree1985b445a055416929b6f00201645700f04dc0d0 /chat/blackened
parentc01ca39f6d15dc306feb97dcd907f5793d7e8482 (diff)
downloadpkgsrc-e49975559989bbc9034ea009537862a1f4ef4523.tar.gz
Avoid <sgtty.h>.
Diffstat (limited to 'chat/blackened')
-rw-r--r--chat/blackened/distinfo4
-rw-r--r--chat/blackened/patches/patch-source_ircflush.c22
-rw-r--r--chat/blackened/patches/patch-source_term.c16
3 files changed, 41 insertions, 1 deletions
diff --git a/chat/blackened/distinfo b/chat/blackened/distinfo
index 00cb206dd0f..b580cc486aa 100644
--- a/chat/blackened/distinfo
+++ b/chat/blackened/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2015/11/03 01:20:17 agc Exp $
+$NetBSD: distinfo,v 1.8 2015/11/07 21:16:36 dholland Exp $
SHA1 (blackened-1.7.1.tar.gz) = 2101762d9b78792616e71bfc3b08113a806c088a
RMD160 (blackened-1.7.1.tar.gz) = 7a57d36f965e18b42c9c0bcfa52b9a8ba55316f7
@@ -8,3 +8,5 @@ SHA1 (patch-aa) = 8bc21cd2aad84e5007126f53ad5e951e67ab3e03
SHA1 (patch-ab) = a64908228f75aea6053879fdd0d4b9c0195647a1
SHA1 (patch-ac) = 5b83317be7adafbc9b98a19012e7495b9c62f06f
SHA1 (patch-source_Makefile.in) = cb5dcb3b03a443b709fae9f4373b77f512254417
+SHA1 (patch-source_ircflush.c) = 0b35359ae609d4108adda6feec882593dd8aa68a
+SHA1 (patch-source_term.c) = ade9d5f76bdad855364849265952bd0f4f6d450d
diff --git a/chat/blackened/patches/patch-source_ircflush.c b/chat/blackened/patches/patch-source_ircflush.c
new file mode 100644
index 00000000000..c30def311a4
--- /dev/null
+++ b/chat/blackened/patches/patch-source_ircflush.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-source_ircflush.c,v 1.1 2015/11/07 21:16:36 dholland Exp $
+
+Remove bogus includes.
+
+--- source/ircflush.c~ 1999-07-16 21:21:43.000000000 +0000
++++ source/ircflush.c
+@@ -12,15 +12,6 @@ static char rcsid[] = "@(#)$Id: ircflush
+ #include "irc.h"
+ #include <sys/wait.h>
+
+-#ifndef __linux__
+-# ifdef __svr4__
+-# include <sys/termios.h>
+-# else
+-# include <sgtty.h> /* SVR4 => sgtty = yuk */
+-# endif /* SOLARIS */
+-#endif /* __linux__ */
+-
+-
+ #define BUFFER_SIZE 1024
+
+ /* descriptors of the tty and pty */
diff --git a/chat/blackened/patches/patch-source_term.c b/chat/blackened/patches/patch-source_term.c
new file mode 100644
index 00000000000..d830aceb4f2
--- /dev/null
+++ b/chat/blackened/patches/patch-source_term.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-source_term.c,v 1.1 2015/11/07 21:16:36 dholland Exp $
+
+- Don't use <sgtty.h> on modern BSD.
+
+--- source/term.c~ 1999-07-26 06:54:34.000000000 +0000
++++ source/term.c
+@@ -101,7 +101,8 @@ static char rcsid[] = "@(#)$Id: term.c,v
+ * i hope other systems based on this don't change it (netbsd,
+ * bsdi, freebsd ..)
+ */
+-#ifdef BSD4_4
++#if defined(BSD4_4) || defined(__NetBSD__) || defined(__FreeBSD__) || \
++ defined(__DragonFly__) || defined(__OpenBSD__) || defined(__Bitrig__)
+ # include <termios.h>
+ # define termio termios
+ # define USE_TERMIO