25 lines
886 B
Plaintext
25 lines
886 B
Plaintext
--- lib/libxview/ttysw/tty_impl.h.orig 1993-06-29 07:17:18.000000000 +0200
|
|
+++ lib/libxview/ttysw/tty_impl.h 2003-12-30 01:31:14.000000000 +0100
|
|
@@ -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]))
|