From 9a4a7da811d13d57ea2b01436092d14ae3423d9c Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 31 Aug 2005 01:29:22 +0000 Subject: cfmakeraw patch for configure.in git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@32 7dcaeef0-15fb-0310-b436-a5af3365683c --- config.h.in | 2 ++ configure | 3 ++- configure.in | 2 +- sample.c | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config.h.in b/config.h.in index 9cf951c5..cc221245 100644 --- a/config.h.in +++ b/config.h.in @@ -3,6 +3,8 @@ /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ #undef HAVE_DOPRNT +#undef HAVE_CFMAKERAW + /* Define to 1 if you have the `endpwent' function. */ #undef HAVE_ENDPWENT diff --git a/configure b/configure index dcc53c11..2281be3e 100755 --- a/configure +++ b/configure @@ -5086,7 +5086,8 @@ done -for ac_func in endpwent gethostbyaddr gethostbyname getpass memmove memset \ + +for ac_func in endpwent gethostbyaddr gethostbyname getpass memmove memset cfmakeraw\ select socket strchr strdup strerror strstr poll do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` diff --git a/configure.in b/configure.in index 7d1a72ea..7f829915 100644 --- a/configure.in +++ b/configure.in @@ -60,7 +60,7 @@ AC_FUNC_REALLOC AC_FUNC_SELECT_ARGTYPES AC_TYPE_SIGNAL AC_FUNC_VPRINTF -AC_CHECK_FUNCS([endpwent gethostbyaddr gethostbyname getpass memmove memset \ +AC_CHECK_FUNCS([endpwent gethostbyaddr gethostbyname getpass memmove memset cfmakeraw\ select socket strchr strdup strerror strstr poll]) AC_CONFIG_FILES([Makefile diff --git a/sample.c b/sample.c index d1c0fb47..60125d60 100644 --- a/sample.c +++ b/sample.c @@ -80,7 +80,7 @@ int opts(int argc, char **argv){ return 0; } -#ifndef HAVE_PTY_H +#ifndef HAVE_CFMAKERAW static void cfmakeraw(struct termios *termios_p){ termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); termios_p->c_oflag &= ~OPOST; -- cgit