Back to index

tetex-bin  3.0
termdep.h
Go to the documentation of this file.
00001 /* termdep.h -- system things that terminal.c depends on.
00002    $Id: termdep.h,v 1.2 2004/04/11 17:56:46 karl Exp $
00003 
00004    Copyright (C) 1993, 1996, 1997, 1998, 2001, 2002 Free Software
00005    Foundation, Inc.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2, or (at your option)
00010    any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program; if not, write to the Free Software
00019    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020 
00021    Written by Brian Fox (bfox@ai.mit.edu). */
00022 
00023 #ifndef INFO_TERMDEP_H
00024 #define INFO_TERMDEP_H
00025 
00026 /* NeXT supplies <termios.h> but it is broken.  Probably Autoconf should
00027    have a separate test, but anyway ... */
00028 #ifdef NeXT
00029 #undef HAVE_TERMIOS_H
00030 #endif
00031 
00032 #ifdef HAVE_TERMIOS_H
00033 #  include <termios.h>
00034 #else
00035 #  if defined (HAVE_TERMIO_H)
00036 #    include <termio.h>
00037 #    if defined (HAVE_SYS_PTEM_H)
00038 #      if defined (M_UNIX) || !defined (M_XENIX)
00039 #        include <sys/stream.h>
00040 #        include <sys/ptem.h>
00041 #        undef TIOCGETC
00042 #      else /* M_XENIX */
00043 #        define tchars tc
00044 #      endif /* M_XENIX */
00045 #    endif /* HAVE_SYS_PTEM_H */
00046 #  else /* !HAVE_TERMIO_H */
00047 #    include <sgtty.h>
00048 #  endif /* !HAVE_TERMIO_H */
00049 #endif /* !HAVE_TERMIOS_H */
00050 
00051 #ifdef GWINSZ_IN_SYS_IOCTL
00052 #  include <sys/ioctl.h>
00053 #endif
00054 
00055 #ifdef HAVE_SYS_TTOLD_H
00056 #  include <sys/ttold.h>
00057 #endif /* HAVE_SYS_TTOLD_H */
00058 
00059 #endif /* not INFO_TERMDEP_H */