mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
cfmakeraw patch for configure.in
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@32 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
||||||
#undef HAVE_DOPRNT
|
#undef HAVE_DOPRNT
|
||||||
|
|
||||||
|
#undef HAVE_CFMAKERAW
|
||||||
|
|
||||||
/* Define to 1 if you have the `endpwent' function. */
|
/* Define to 1 if you have the `endpwent' function. */
|
||||||
#undef HAVE_ENDPWENT
|
#undef HAVE_ENDPWENT
|
||||||
|
|
||||||
|
|||||||
3
configure
vendored
3
configure
vendored
@@ -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
|
select socket strchr strdup strerror strstr poll
|
||||||
do
|
do
|
||||||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ AC_FUNC_REALLOC
|
|||||||
AC_FUNC_SELECT_ARGTYPES
|
AC_FUNC_SELECT_ARGTYPES
|
||||||
AC_TYPE_SIGNAL
|
AC_TYPE_SIGNAL
|
||||||
AC_FUNC_VPRINTF
|
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])
|
select socket strchr strdup strerror strstr poll])
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
|
|||||||
2
sample.c
2
sample.c
@@ -80,7 +80,7 @@ int opts(int argc, char **argv){
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef HAVE_PTY_H
|
#ifndef HAVE_CFMAKERAW
|
||||||
static void cfmakeraw(struct termios *termios_p){
|
static void cfmakeraw(struct termios *termios_p){
|
||||||
termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
|
termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
|
||||||
termios_p->c_oflag &= ~OPOST;
|
termios_p->c_oflag &= ~OPOST;
|
||||||
|
|||||||
Reference in New Issue
Block a user