171
|
1 /* termdep.h -- System things that terminal.c depends on. */ |
|
2 |
|
3 /* This file is part of GNU Info, a program for reading online documentation |
|
4 stored in Info format. |
|
5 |
|
6 Copyright (C) 1993 Free Software Foundation, Inc. |
|
7 |
|
8 This program is free software; you can redistribute it and/or modify |
|
9 it under the terms of the GNU General Public License as published by |
|
10 the Free Software Foundation; either version 2, or (at your option) |
|
11 any later version. |
|
12 |
|
13 This program is distributed in the hope that it will be useful, |
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 GNU General Public License for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with this program; if not, write to the Free Software |
|
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 Written by Brian Fox (bfox@ai.mit.edu). */ |
|
23 |
|
24 #if defined (HAVE_SYS_FCNTL_H) |
|
25 #include <sys/fcntl.h> |
|
26 #else |
|
27 #include <fcntl.h> |
|
28 #endif /* !HAVE_SYS_FCNTL_H */ |
|
29 |
173
|
30 #if defined (HAVE_TERMIOS_H) |
|
31 |
|
32 #include <termios.h> |
|
33 #include <string.h> |
|
34 #if defined (HAVE_SYS_PTEM_H) |
|
35 #if !defined (M_XENIX) |
|
36 #include <sys/stream.h> |
|
37 #include <sys/ptem.h> |
|
38 #undef TIOCGETC |
|
39 #else /* M_XENIX */ |
|
40 #define tchars tc |
|
41 #endif /* M_XENIX */ |
|
42 #endif /* HAVE_SYS_PTEM_H */ |
|
43 |
|
44 #elif defined (HAVE_TERMIO_H) |
|
45 |
171
|
46 #include <termio.h> |
|
47 #include <string.h> |
|
48 #if defined (HAVE_SYS_PTEM_H) |
|
49 #if !defined (M_XENIX) |
|
50 #include <sys/stream.h> |
|
51 #include <sys/ptem.h> |
|
52 #undef TIOCGETC |
|
53 #else /* M_XENIX */ |
|
54 #define tchars tc |
|
55 #endif /* M_XENIX */ |
|
56 #endif /* HAVE_SYS_PTEM_H */ |
173
|
57 |
171
|
58 #else /* !HAVE_TERMIO_H */ |
173
|
59 |
171
|
60 #include <sys/file.h> |
|
61 #include <sgtty.h> |
|
62 #include <strings.h> |
173
|
63 |
171
|
64 #endif /* !HAVE_TERMIO_H */ |
|
65 |
|
66 #if defined (HAVE_SYS_TTOLD_H) |
|
67 #include <sys/ttold.h> |
|
68 #endif /* HAVE_SYS_TTOLD_H */ |
|
69 |
|
70 #if !defined (HAVE_RINDEX) |
|
71 #undef index |
|
72 #undef rindex |
|
73 #define index strchr |
|
74 #define rindex strrchr |
|
75 #endif |
|
76 |
|
77 #if !defined (HAVE_BCOPY) |
|
78 #undef bcopy |
|
79 #define bcopy(source, dest, count) memcpy(dest, source, count) |
|
80 #endif |
|
81 |
|
82 /* eof */ |