Upgrade Texinfo from 4.8 to 4.13 on the vendor branch
[dragonfly.git] / contrib / texinfo / info / termdep.h
1 /* termdep.h -- system things that terminal.c depends on.
2    $Id: termdep.h,v 1.5 2007/07/01 21:20:31 karl Exp $
3
4    Copyright (C) 1993, 1996, 1997, 1998, 2001, 2002, 2007
5    Free Software Foundation, Inc.
6
7    This program is free software: you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20    Written by Brian Fox (bfox@ai.mit.edu). */
21
22 #ifndef INFO_TERMDEP_H
23 #define INFO_TERMDEP_H
24
25 /* NeXT supplies <termios.h> but it is broken.  Probably Autoconf should
26    have a separate test, but anyway ... */
27 #ifdef NeXT
28 #undef HAVE_TERMIOS_H
29 #endif
30
31 #ifdef HAVE_TERMIOS_H
32 #  include <termios.h>
33 #else
34 #  if defined (HAVE_TERMIO_H)
35 #    include <termio.h>
36 #    if defined (HAVE_SYS_PTEM_H)
37 #      if defined (M_UNIX) || !defined (M_XENIX)
38 #        include <sys/stream.h>
39 #        include <sys/ptem.h>
40 #        undef TIOCGETC
41 #      else /* M_XENIX */
42 #        define tchars tc
43 #      endif /* M_XENIX */
44 #    endif /* HAVE_SYS_PTEM_H */
45 #  else /* !HAVE_TERMIO_H */
46 #    include <sgtty.h>
47 #  endif /* !HAVE_TERMIO_H */
48 #endif /* !HAVE_TERMIOS_H */
49
50 #ifdef GWINSZ_IN_SYS_IOCTL
51 #  include <sys/ioctl.h>
52 #endif
53
54 #ifdef HAVE_SYS_TTOLD_H
55 #  include <sys/ttold.h>
56 #endif /* HAVE_SYS_TTOLD_H */
57
58 #endif /* not INFO_TERMDEP_H */