Mercurial > hg > xemacs-beta
diff src/console.c @ 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 | 141c2920ea48 |
children | d674024a8674 |
line wrap: on
line diff
--- 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, "", /*