# HG changeset patch # User malcolmp # Date 1134906268 0 # Node ID 7c45a748ff5488198a51533c6927a208f741a2ed # Parent d830788d6a2ca2e274629a9075dae2d6ed10d827 [xemacs-hg @ 2005-12-18 11:44:26 by malcolmp] console.c (stuff_buffered_input): Compile body only if HAVE_TTY. diff -r d830788d6a2c -r 7c45a748ff54 src/ChangeLog --- 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 + + * console.c (stuff_buffered_input): Compile body only if + HAVE_TTY. + 2005-12-18 Aidan Kehoe * chartab.c (Fmake_char_table): diff -r d830788d6a2c -r 7c45a748ff54 src/console.c --- 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, "", /*