]> git.ipfire.org Git - thirdparty/gcc.git/blob - texinfo/info/termdep.h
Initial revision
[thirdparty/gcc.git] / texinfo / info / termdep.h
1 /* termdep.h -- System things that terminal.c depends on.
2 $Id: termdep.h,v 1.3 1996/10/02 22:23:52 karl Exp $
3
4 This file is part of GNU Info, a program for reading online documentation
5 stored in Info format.
6
7 Copyright (C) 1993, 96 Free Software 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 #if !defined (_TERMDEP_H_)
26 # define _TERMDEP_H_
27
28 #if defined (HAVE_SYS_FCNTL_H)
29 # include <sys/fcntl.h>
30 #else
31 # include <fcntl.h>
32 #endif /* !HAVE_SYS_FCNTL_H */
33
34 #if defined (HAVE_SYS_FILE_H)
35 # include <sys/file.h>
36 #endif /* HAVE_SYS_FILE_H */
37
38 #if defined (HAVE_STRINGS_H)
39 # include <strings.h>
40 #else
41 # if defined (HAVE_STRING_H)
42 # include <string.h>
43 # endif
44 #endif
45
46 #if defined (HAVE_TERMIOS_H)
47 # include <termios.h>
48 #else
49 # if defined (HAVE_TERMIO_H)
50 # include <termio.h>
51 # if defined (HAVE_SYS_PTEM_H)
52 # if defined (M_UNIX) || !defined (M_XENIX)
53 # include <sys/stream.h>
54 # include <sys/ptem.h>
55 # undef TIOCGETC
56 # else /* M_XENIX */
57 # define tchars tc
58 # endif /* M_XENIX */
59 # endif /* HAVE_SYS_PTEM_H */
60 # else /* !HAVE_TERMIO_H */
61 # include <sgtty.h>
62 # endif /* !HAVE_TERMIO_H */
63 #endif /* !HAVE_TERMIOS_H */
64
65 #if defined (HAVE_SYS_TTOLD_H)
66 # include <sys/ttold.h>
67 #endif /* HAVE_SYS_TTOLD_H */
68
69 #if !defined (HAVE_STRCHR)
70 # undef strchr
71 # undef strrchr
72 # define strchr index
73 # define strrchr rindex
74 #endif /* !HAVE_STRCHR */
75
76 #endif /* _TERMDEP_H_ */