Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / texinfo / info / termdep.h
1 /* termdep.h -- System things that terminal.c depends on.
2    $Id: termdep.h,v 1.5 2001/09/12 17:26:03 karl Exp $
3
4    Copyright (C) 1993, 96, 97, 98, 2001 Free Software Foundation, Inc.
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2, or (at your option)
9    any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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 */