summaryrefslogtreecommitdiff
path: root/src/minibuf.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-07-11 12:56:58 +0300
committerEli Zaretskii <eliz@gnu.org>2014-07-11 12:56:58 +0300
commit8f4fc468ca50120c2218f74555301d68004d8217 (patch)
tree38d5e92d1f93c1e296382369c23ff8c26d74d706 /src/minibuf.c
parent0e02d309ef9b52327c49908f747cf20b80e4f1e5 (diff)
downloademacs-8f4fc468ca50120c2218f74555301d68004d8217.tar.gz
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
Diffstat (limited to 'src/minibuf.c')
-rw-r--r--src/minibuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 122f77fff96..6c6ab7f5865 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -240,8 +240,10 @@ read_minibuf_noninteractive (Lisp_Object map, Lisp_Object initial,
{
emacs_get_tty (fileno (stdin), &old);
new = old;
+#ifndef WINDOWSNT
new.main.c_lflag &= ~ICANON; /* Disable buffering */
new.main.c_lflag &= ~ECHO; /* Disable echoing */
+#endif
emacs_set_tty (fileno (stdin), &new, 0);
}