1/* termdep.h -- system things that terminal.c depends on.
2   $Id: termdep.h,v 1.2 2004/04/11 17:56:46 karl Exp $
3
4   Copyright (C) 1993, 1996, 1997, 1998, 2001, 2002 Free Software
5   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 2, or (at your option)
10   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, write to the Free Software
19   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
21   Written by Brian Fox (bfox@ai.mit.edu). */
22
23#ifndef INFO_TERMDEP_H
24#define INFO_TERMDEP_H
25
26/* NeXT supplies <termios.h> but it is broken.  Probably Autoconf should
27   have a separate test, but anyway ... */
28#ifdef NeXT
29#undef HAVE_TERMIOS_H
30#endif
31
32#ifdef HAVE_TERMIOS_H
33#  include <termios.h>
34#else
35#  if defined (HAVE_TERMIO_H)
36#    include <termio.h>
37#    if defined (HAVE_SYS_PTEM_H)
38#      if defined (M_UNIX) || !defined (M_XENIX)
39#        include <sys/stream.h>
40#        include <sys/ptem.h>
41#        undef TIOCGETC
42#      else /* M_XENIX */
43#        define tchars tc
44#      endif /* M_XENIX */
45#    endif /* HAVE_SYS_PTEM_H */
46#  else /* !HAVE_TERMIO_H */
47#    include <sgtty.h>
48#  endif /* !HAVE_TERMIO_H */
49#endif /* !HAVE_TERMIOS_H */
50
51#ifdef GWINSZ_IN_SYS_IOCTL
52#  include <sys/ioctl.h>
53#endif
54
55#ifdef HAVE_SYS_TTOLD_H
56#  include <sys/ttold.h>
57#endif /* HAVE_SYS_TTOLD_H */
58
59#endif /* not INFO_TERMDEP_H */
60