diff --git a/configure.ac b/configure.ac index 01f51f2..dc790d0 100644 --- a/configure.ac +++ b/configure.ac @@ -71,8 +71,8 @@ AC_FUNC_MALLOC AC_FUNC_REALLOC AC_CHECK_FUNCS([alarm dup2 gettimeofday localtime_r memset socket strcasecmp \ strchr strcspn strerror strncasecmp strpbrk strrchr strtol \ - getifaddrs if_nameindex termios sigaction nanosleep \ - gettimeofday getrusage setitimer]) + getifaddrs if_nameindex sigaction nanosleep \ + gettimeofday getrusage setitimer tcsetattr]) # Check for CPU. # This requires install-sh, config.sub, config.guess from automake. diff --git a/src/cenv.h b/src/cenv.h index e39f478..9c7c7f9 100644 --- a/src/cenv.h +++ b/src/cenv.h @@ -216,8 +216,7 @@ This only has features of interest for KLH10 software. */ #ifndef CENV_SYSF_TERMIOS /* Has termios(3) tty stuff */ -# define CENV_SYSF_TERMIOS (CENV_SYS_DECOSF|CENV_SYS_SOLARIS|CENV_SYS_XBSD \ - |CENV_SYS_LINUX) +# define CENV_SYSF_TERMIOS (HAVE_TERMIOS_H && HAVE_TCSETATTR) #endif #ifndef CENV_SYSF_BSDTTY /* Has old BSD tty stuff */ # define CENV_SYSF_BSDTTY (!CENV_SYSF_TERMIOS && CENV_SYS_BSD)