$NetBSD: patch-ci,v 1.1 2001/12/20 09:20:02 tron Exp $ --- lib/libxview/ttysw/tty_impl.h.orig Tue Jun 29 07:17:18 1993 +++ lib/libxview/ttysw/tty_impl.h Thu Dec 20 10:09:17 2001 @@ -14,6 +14,7 @@ * terminal emulation for teletype based programs. */ +#include #include /* tty and pty configuration info */ #ifdef XV_USE_TERMIOS @@ -210,7 +211,13 @@ * Access functions for tty characteristics. */ #ifdef XV_USE_TERMIOS +#if (defined(BSD) && (BSD >= 199103)) +#include +#include +#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]))