Merge commit 'crater/master'
[dragonfly.git] / contrib / texinfo-4 / info / termdep.h
blob45f38aca5b38ae66a01f4128d629736d12e55795
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 $
4 Copyright (C) 1993, 1996, 1997, 1998, 2001, 2002 Free Software
5 Foundation, Inc.
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.
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.
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.
21 Written by Brian Fox (bfox@ai.mit.edu). */
23 #ifndef INFO_TERMDEP_H
24 #define INFO_TERMDEP_H
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
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 */
51 #ifdef GWINSZ_IN_SYS_IOCTL
52 # include <sys/ioctl.h>
53 #endif
55 #ifdef HAVE_SYS_TTOLD_H
56 # include <sys/ttold.h>
57 #endif /* HAVE_SYS_TTOLD_H */
59 #endif /* not INFO_TERMDEP_H */