xref: /netbsd-src/external/gpl2/texinfo/dist/info/termdep.h (revision 29619d2afe564e54d657b83e5a3ae89584f83720)
1 /*	$NetBSD: termdep.h,v 1.1.1.1 2016/01/14 00:11:29 christos Exp $	*/
2 
3 /* termdep.h -- system things that terminal.c depends on.
4    Id: termdep.h,v 1.2 2004/04/11 17:56:46 karl Exp
5 
6    Copyright (C) 1993, 1996, 1997, 1998, 2001, 2002 Free Software
7    Foundation, Inc.
8 
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 2, or (at your option)
12    any later version.
13 
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18 
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 
23    Written by Brian Fox (bfox@ai.mit.edu). */
24 
25 #ifndef INFO_TERMDEP_H
26 #define INFO_TERMDEP_H
27 
28 /* NeXT supplies <termios.h> but it is broken.  Probably Autoconf should
29    have a separate test, but anyway ... */
30 #ifdef NeXT
31 #undef HAVE_TERMIOS_H
32 #endif
33 
34 #ifdef HAVE_TERMIOS_H
35 #  include <termios.h>
36 #else
37 #  if defined (HAVE_TERMIO_H)
38 #    include <termio.h>
39 #    if defined (HAVE_SYS_PTEM_H)
40 #      if defined (M_UNIX) || !defined (M_XENIX)
41 #        include <sys/stream.h>
42 #        include <sys/ptem.h>
43 #        undef TIOCGETC
44 #      else /* M_XENIX */
45 #        define tchars tc
46 #      endif /* M_XENIX */
47 #    endif /* HAVE_SYS_PTEM_H */
48 #  else /* !HAVE_TERMIO_H */
49 #    include <sgtty.h>
50 #  endif /* !HAVE_TERMIO_H */
51 #endif /* !HAVE_TERMIOS_H */
52 
53 #ifdef GWINSZ_IN_SYS_IOCTL
54 #  include <sys/ioctl.h>
55 #endif
56 
57 #ifdef HAVE_SYS_TTOLD_H
58 #  include <sys/ttold.h>
59 #endif /* HAVE_SYS_TTOLD_H */
60 
61 #endif /* not INFO_TERMDEP_H */
62