aboutsummaryrefslogtreecommitdiffstats
path: root/terms.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-09 13:59:04 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-09 13:59:04 +0000
commitf41604493664f96ef07e7f74934c73736b3942a6 (patch)
tree47f73d8e60f956aec1d1190ae1ca71d857ab51a7 /terms.c
parentfix to prevent rcsid expansion (diff)
downloadw3m-f41604493664f96ef07e7f74934c73736b3942a6.tar.gz
w3m-f41604493664f96ef07e7f74934c73736b3942a6.zip
[w3m-dev 02646]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'terms.c')
-rw-r--r--terms.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/terms.c b/terms.c
index 8965912..7d195b2 100644
--- a/terms.c
+++ b/terms.c
@@ -1,4 +1,4 @@
-/* $Id: terms.c,v 1.20 2001/12/02 16:26:08 ukai Exp $ */
+/* $Id: terms.c,v 1.21 2001/12/09 13:59:04 ukai Exp $ */
/*
* An original curses library for EUC-kanji by Akinori ITO, December 1989
* revised by Akinori ITO, January 1995
@@ -15,6 +15,7 @@
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
+#include <sys/ioctl.h>
#ifdef USE_MOUSE
#ifdef USE_GPM
#include <gpm.h>
@@ -234,8 +235,7 @@ void flush_tty();
#endif /* not SIGIOT */
#ifdef HAVE_TERMIO_H
-#include <sys/ioctl.h>
-#include <termio.h>
+#include <termio.h>
typedef struct termio TerminalMode;
#define TerminalSet(fd,x) ioctl(fd,TCSETA,x)
#define TerminalGet(fd,x) ioctl(fd,TCGETA,x)
@@ -254,8 +254,7 @@ typedef struct termios TerminalMode;
#endif /* HAVE_TERMIOS_H */
#ifdef HAVE_SGTTY_H
-#include <sys/ioctl.h>
-#include <sgtty.h>
+#include <sgtty.h>
typedef struct sgttyb TerminalMode;
#define TerminalSet(fd,x) ioctl(fd,TIOCSETP,x)
#define TerminalGet(fd,x) ioctl(fd,TIOCGETP,x)
@@ -655,10 +654,6 @@ getTCstr(void)
setgraphchar();
}
-#ifndef TIOCGWINSZ
-#include <sys/ioctl.h>
-#endif /* not TIOCGWINSZ */
-
void
setlinescols(void)
{