Debian Codegraph @

src/compat/termios.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2000 Ross Combs ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18 #ifndef INCLUDED_TERMIOS_TYPES
19 #define INCLUDED_TERMIOS_TYPES
20
21 /* FIXME: this might already exist even if termios.h doesn't... check
22 for the type in autoconf */
23 # ifndef HAVE_TERMIOS_H
24 namespace pvpgn
25 {
26
27 struct termios
28 {
29 int c_lflag;
30 int c_cc[1];
31 };
32
33 }
34
35 # define ECHO 1
36 # define ICANON 1
37 # define VMIN 1
38 # define VTIME 1
39
40 # endif
41
42 #endif
43
44
45 #ifndef INCLUDED_TERMIOS_PROTOS
46 #define INCLUDED_TERMIOS_PROTOS
47
48 /* FIXME: check for functions or macros (autoconf doesn't protect header inclusion for function tests so it isn't easy */
49 #ifndef HAVE_TERMIOS_H
50 # define tcgetattr(F,T) (-1)
51 #endif
52
53 /* FIXME: check for functions or macros (autoconf doesn't protect header inclusion for function tests so it isn't easy */
54 #ifndef HAVE_TERMIOS_H
55 # define tcsetattr(F,A,T) (-1)
56 #endif
57
58 #endif