changeset 3146:7c45a748ff54

[xemacs-hg @ 2005-12-18 11:44:26 by malcolmp] console.c (stuff_buffered_input): Compile body only if HAVE_TTY.
author malcolmp
date Sun, 18 Dec 2005 11:44:28 +0000
parents d830788d6a2c
children 971e3c687f18
files src/ChangeLog src/console.c
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Dec 18 10:59:14 2005 +0000
+++ b/src/ChangeLog	Sun Dec 18 11:44:28 2005 +0000
@@ -1,3 +1,8 @@
+2005-12-14  Malcolm Purvis  <malcolmp@xemacs.org>
+
+	* console.c (stuff_buffered_input): Compile body only if
+	HAVE_TTY.
+
 2005-12-18  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* chartab.c (Fmake_char_table):
--- a/src/console.c	Sun Dec 18 10:59:14 2005 +0000
+++ b/src/console.c	Sun Dec 18 11:44:28 2005 +0000
@@ -990,7 +990,7 @@
 
 void
 stuff_buffered_input (
-#ifdef BSD
+#if defined(BSD) && defined(HAVE_TTY)
 		      Lisp_Object stuffstring
 #else
 		      Lisp_Object UNUSED (stuffstring)
@@ -998,7 +998,7 @@
 		      )
 {
 /* 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;
@@ -1024,7 +1024,7 @@
       stuff_char (XCONSOLE (Vcontrolling_terminal), *kbd_fetch_ptr++);
     }
 # endif
-#endif /* BSD */
+#endif /* BSD && HAVE_TTY */
 }
 
 DEFUN ("suspend-console", Fsuspend_console, 0, 1, "", /*