Commit 8f4fc468 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Temporary fix for the MS-Windows build broken by last commit.

 src/minibuf.c (read_minibuf_noninteractive) [WINDOWSNT]: Don't
 reference termios structure members.

Fixes: debbugs:17839
parent 0e02d309
2014-07-11 Eli Zaretskii <eliz@gnu.org>
* minibuf.c (read_minibuf_noninteractive) [WINDOWSNT]: Don't
reference termios structure members.
2014-07-11 Michael Albinus <michael.albinus@gmx.de> 2014-07-11 Michael Albinus <michael.albinus@gmx.de>
* sysdep.c (emacs_get_tty, emacs_set_tty): Make them externally visible. * sysdep.c (emacs_get_tty, emacs_set_tty): Make them externally visible.
......
...@@ -240,8 +240,10 @@ read_minibuf_noninteractive (Lisp_Object map, Lisp_Object initial, ...@@ -240,8 +240,10 @@ read_minibuf_noninteractive (Lisp_Object map, Lisp_Object initial,
{ {
emacs_get_tty (fileno (stdin), &old); emacs_get_tty (fileno (stdin), &old);
new = old; new = old;
#ifndef WINDOWSNT
new.main.c_lflag &= ~ICANON; /* Disable buffering */ new.main.c_lflag &= ~ICANON; /* Disable buffering */
new.main.c_lflag &= ~ECHO; /* Disable echoing */ new.main.c_lflag &= ~ECHO; /* Disable echoing */
#endif
emacs_set_tty (fileno (stdin), &new, 0); emacs_set_tty (fileno (stdin), &new, 0);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment