summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-ch
diff options
context:
space:
mode:
authortron <tron>2001-12-20 09:19:53 +0000
committertron <tron>2001-12-20 09:19:53 +0000
commit466ed08f5827f779c8d246edcb727f46e89de431 (patch)
tree4f262d25e837db12d2b8bd96b651b1c07c0cad61 /x11/xview-lib/patches/patch-ch
parent9f677650638e78da433bbf2a651032f5515999b3 (diff)
downloadpkgsrc-466ed08f5827f779c8d246edcb727f46e89de431.tar.gz
Cleanup patch files:
- unified format - only one patch per file - no files gets patched twice
Diffstat (limited to 'x11/xview-lib/patches/patch-ch')
-rw-r--r--x11/xview-lib/patches/patch-ch41
1 files changed, 41 insertions, 0 deletions
diff --git a/x11/xview-lib/patches/patch-ch b/x11/xview-lib/patches/patch-ch
new file mode 100644
index 00000000000..81040d5d33d
--- /dev/null
+++ b/x11/xview-lib/patches/patch-ch
@@ -0,0 +1,41 @@
+$NetBSD: patch-ch,v 1.1 2001/12/20 09:20:02 tron Exp $
+
+--- lib/libxview/ttysw/tty_gtty.c.orig Tue Jun 29 07:17:20 1993
++++ lib/libxview/ttysw/tty_gtty.c Thu Dec 20 10:09:17 2001
+@@ -14,6 +14,7 @@
+ * Ttysw parameter retrieval mechanism to get original tty settings to pty.
+ */
+
++#include <sys/param.h>
+ #include <sys/types.h>
+ #include <stdio.h>
+ #include <xview_private/portable.h> /* for tty_mode_t and XV* defines */
+@@ -34,6 +35,7 @@
+ */
+ #ifdef XV_USE_TERMIOS
+
++#if !(defined(BSD) && (BSD >= 199103))
+ static struct termios default_modes = {
+ BRKINT|ICRNL|IXON|IGNPAR|IMAXBEL, /* input modes */
+ OPOST|ONLCR, /* output modes */
+@@ -57,6 +59,20 @@
+ CWERASE, /* VWERASE */
+ CLNEXT, /* VLNEXT */
+ };
++#else
++#include <sys/ttydefaults.h>
++static struct termios default_modes = {
++ TTYDEF_IFLAG, /* input modes */
++ TTYDEF_OFLAG, /* output modes */
++ TTYDEF_CFLAG, /* control modes */
++ TTYDEF_LFLAG, /* local modes */
++ /* control characters */
++ { CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT,
++ _POSIX_VDISABLE, CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT,
++ CDISCARD, CMIN, CTIME, CSTATUS, _POSIX_VDISABLE },
++ TTYDEF_SPEED, TTYDEF_SPEED /* input and output speeds */
++};
++#endif
+
+ #else /* XV_USE_TERMIOS */
+