Be more optimistic about the availability of termios for ~ECHO,

because sgtty emulation tends to fail on various systems.
Submitted by:
Reviewed by:
PR:
This commit is contained in:
Bodo Möller
1999-04-08 17:10:27 +00:00
parent bacad008eb
commit fa3da3cf09
2 changed files with 22 additions and 1 deletions

View File

@@ -56,7 +56,22 @@
* [including the GNU Public Licence.]
*/
#if !defined(MSDOS) && !defined(VMS)
#include <unistd.h>
/* If unistd.h defines _POSIX_VERSION, we conclude that we
* are on a POSIX system and have sigaction and termios. */
#if defined(_POSIX_VERSION)
# define SIGACTION
# if !defined(TERMIOS) && !defined(TERMIO) && !defined(SGTTY)
# define TERMIOS
# endif
#endif
#endif
/* #define SIGACTION */ /* Define this if you have sigaction() */
#ifdef WIN16TTY
#undef WIN16
#undef _WINDOWS