summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-ci
blob: e2827aaaf8aab428f99035f3de24149c854b09fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$NetBSD: patch-ci,v 1.3 2012/11/16 00:29:40 joerg Exp $

--- lib/libxview/ttysw/tty_impl.h.orig	1993-06-29 05:17:18.000000000 +0000
+++ lib/libxview/ttysw/tty_impl.h
@@ -14,6 +14,7 @@
  * terminal emulation for teletype based programs.
  */
 
+#include <sys/param.h>
 #include <xview_private/portable.h>	/* tty and pty configuration info */
 
 #ifdef	XV_USE_TERMIOS
@@ -210,7 +211,13 @@ typedef Ttysw_view_object* 	Ttysw_view_h
  * Access functions for tty characteristics.
  */
 #ifdef	XV_USE_TERMIOS
+#if (defined(BSD) && (BSD >= 199103))
+#include <sys/ioctl.h>
+#include <sys/ioctl_compat.h>
+#define tty_gettabs(t)		((t)->termios.c_oflag & OXTABS)
+#else   
 #define	tty_gettabs(t)		((t)->termios.c_oflag & XTABS)
+#endif
 #define	tty_getdsuspc(t)	((int) ((t)->termios.c_cc[VDSUSP]))
 #define	tty_geteofc(t)		((int) ((t)->termios.c_cc[VEOF]))
 #define	tty_geteolc(t)		((int) ((t)->termios.c_cc[VEOL]))
@@ -393,6 +400,8 @@ Pkg_private void
 	tty_column_wchar_type();
 #endif
 
+Pkg_private void
+	ttysw_pty_output();
 Pkg_private int
 	tty_folio_init(),
 	tty_getmode(),
@@ -415,7 +424,6 @@ Pkg_private int
 	ttysw_mapsetim(),
 	ttysw_output_it(),
 	ttysw_print_bold_options(),
-	ttysw_pty_output(),
 	ttysw_pty_output_ok(),
 	ttysw_restoreparms(),
 	ttysw_saveparms(),