Malcolm Purvis <malcolmp(a)xemacs.org> writes:
21.4
This is the 21.4 version of my --without-tty build fix. Looking through CVS
it seems that this problem has been around for a long while.
Malcolm
src/ChangeLog addition:
2005-12-18 Malcolm Purvis <malcolmp(a)xemacs.org>
* console.c (stuff_buffered_input): Compile body only if
HAVE_TTY.
xemacs-21.4-micro-patches source patch:
Diff command: cvs -q diff -u
Files affected: src/console.c
Index: src/console.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/console.c,v
retrieving revision 1.19.2.2
diff -u -r1.19.2.2 console.c
--- src/console.c 2005/01/31 02:55:06 1.19.2.2
+++ src/console.c 2005/12/18 12:41:26
@@ -882,7 +882,7 @@
stuff_buffered_input (Lisp_Object stuffstring)
{
/* stuff_char works only in BSD, versions 4.2 and up. */
-#if defined (BSD)
+#if defined (BSD) && defined(HAVE_TTY)
if (!CONSOLEP (Vcontrolling_terminal) ||
!CONSOLE_LIVE_P (XCONSOLE (Vcontrolling_terminal)))
return;
@@ -908,7 +908,7 @@
stuff_char (XCONSOLE (Vcontrolling_terminal), *kbd_fetch_ptr++);
}
# endif
-#endif /* BSD */
+#endif /* BSD && HAVE_TTY */
}
DEFUN ("suspend-console", Fsuspend_console, 0, 1, "", /*
APPROVE COMMIT 21.4
Thanks for the patch, Malcolm. It will appear in 21.4.19.
- Vin