1 /* 2 * Copyright (C) 2000 Ross Combs (rocombs@cs.nmsu.edu) 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 struct termios 25 { 26 int c_lflag; 27 int c_cc[1]; 28 }; 29 30 # define ECHO 1 31 # define ICANON 1 32 # define VMIN 1 33 # define VTIME 1 34 35 # endif 36 37 #endif 38 39 40 #ifndef INCLUDED_TERMIOS_PROTOS 41 #define INCLUDED_TERMIOS_PROTOS 42 43 /* FIXME: check for functions or macros (autoconf doesn't protect header inclusion for function tests so it isn't easy */ 44 #ifndef HAVE_TERMIOS_H 45 # define tcgetattr(F,T) (-1) 46 #endif 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 tcsetattr(F,A,T) (-1) 51 #endif 52 53 #endif 54