summaryrefslogtreecommitdiff
path: root/devel/xxgdb
diff options
context:
space:
mode:
Diffstat (limited to 'devel/xxgdb')
-rw-r--r--devel/xxgdb/distinfo3
-rw-r--r--devel/xxgdb/patches/patch-ad52
2 files changed, 54 insertions, 1 deletions
diff --git a/devel/xxgdb/distinfo b/devel/xxgdb/distinfo
index 5a2dd6b54f1..cd734f3c1ce 100644
--- a/devel/xxgdb/distinfo
+++ b/devel/xxgdb/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2001/04/21 00:44:49 wiz Exp $
+$NetBSD: distinfo,v 1.3 2001/11/22 14:37:27 tron Exp $
SHA1 (xxgdb-1.12.tar.gz) = dbe55e0fbc1f4b40ce92bfe845dc18c6ac2a084d
Size (xxgdb-1.12.tar.gz) = 115537 bytes
SHA1 (patch-aa) = dd391e22e8f346116efe4fdcd82d42a00b81831a
SHA1 (patch-ab) = 0c73b2a6281ca71c6713d95ab06a941248ba62d9
SHA1 (patch-ac) = 013660c7a568fb0b832c3a43c87e84e6b4200b6d
+SHA1 (patch-ad) = ea79b9ff9403431100a4784528c3bbc276722818
diff --git a/devel/xxgdb/patches/patch-ad b/devel/xxgdb/patches/patch-ad
new file mode 100644
index 00000000000..2a57a87ce9d
--- /dev/null
+++ b/devel/xxgdb/patches/patch-ad
@@ -0,0 +1,52 @@
+$NetBSD: patch-ad,v 1.1 2001/11/22 14:37:27 tron Exp $
+
+--- calldbx.c.orig Tue Jun 20 00:11:00 1995
++++ calldbx.c Thu Nov 22 15:27:44 2001
+@@ -74,10 +74,6 @@
+ #include <string.h>
+ #include <fcntl.h>
+ #include "global.h"
+-#if !(defined(OLDSUNOS) || defined(BSD))
+-#include <termio.h>
+-#else
+-#include <sgtty.h>
+-#endif
++#include <termios.h>
+
+ #ifdef CREATE_IO_WINDOW
+@@ -243,14 +240,7 @@
+ int argc;
+ char *argv[];
+ {
+-/*
+- * (JBL)10MAY91 : use sgttyb if generic BSD
+- */
+-#if !(defined(OLDSUNOS) || defined(BSD))
+- struct termio Termio;
+-#else
+- struct sgttyb Termio;
+-#endif
++ struct termios Termio;
+ int master; /* file descriptor of master pty */
+ int slave; /* file descriptor of slave pty */
+ #ifdef OLDBSD
+@@ -355,17 +345,10 @@
+ /*
+ * (JBL)10MAY91 : use sgttyb if OLDSUN or generic BSD
+ */
+-#if !(defined(OLDSUNOS) || defined(BSD))
+- ioctl(slave, TCGETA, &Termio);
++ (void)tcgetattr(slave, &Termio);
+ Termio.c_lflag &= ~ECHO; /* No echo */
+ Termio.c_oflag &= ~ONLCR; /* Do not map NL to CR-NL on output */
+- ioctl(slave, TCSETA, &Termio);
+-#else
+- ioctl(slave, TIOCGETP, &Termio);
+- Termio.sg_flags &= ~ECHO; /* No echo */
+- Termio.sg_flags &= ~CRMOD; /* Do not map NL to CR-NL on output */
+- ioctl(slave, TIOCSETP, &Termio);
+-#endif
++ (void)tcsetattr(slave, TCSANOW, &Termio);
+
+ dup2(slave, 0);
+ dup2(slave, 1);