X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fconsole.c;h=0840f8a4177ee045fb821e73eb4366c7c076b868;hb=de7caee5f47b0888cb3895ce8c09d745f2fc35aa;hp=789a477e804c9879de3387dbb72c067b879d1a28;hpb=e138ff4676e92b9e131330c4777d922fad519e27;p=chise%2Fxemacs-chise.git diff --git a/src/console.c b/src/console.c index 789a477..0840f8a 100644 --- a/src/console.c +++ b/src/console.c @@ -882,7 +882,7 @@ void 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_buffered_input (Lisp_Object stuffstring) stuff_char (XCONSOLE (Vcontrolling_terminal), *kbd_fetch_ptr++); } # endif -#endif /* BSD */ +#endif /* BSD && HAVE_TTY */ } DEFUN ("suspend-console", Fsuspend_console, 0, 1, "", /*