diff options
author | tron <tron> | 2001-11-22 14:37:27 +0000 |
---|---|---|
committer | tron <tron> | 2001-11-22 14:37:27 +0000 |
commit | 44eabff533945599d9ff8ada656b140fe63e57eb (patch) | |
tree | cbb41a54509730f393d9eb8d8b415d3939b066e8 /devel/xxgdb | |
parent | a4824db32eaef20599aeccdffb0672736149aebd (diff) | |
download | pkgsrc-44eabff533945599d9ff8ada656b140fe63e57eb.tar.gz |
Use tcgetattr(3) and tcsetattr(3) instead of old BSD 4.3 I/O controls to
setup pty for "gdb". This package now works on kernels without "COMPAT_43"
which fixes PR pkg/7024.
Diffstat (limited to 'devel/xxgdb')
-rw-r--r-- | devel/xxgdb/distinfo | 3 | ||||
-rw-r--r-- | devel/xxgdb/patches/patch-ad | 52 |
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); |