aboutsummaryrefslogtreecommitdiff
path: root/readline/input.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2000-03-15 11:47:46 +0000
committerEli Zaretskii <eliz@gnu.org>2000-03-15 11:47:46 +0000
commit992d0af0616c67c825bd89ca79095c37d1a2acfd (patch)
treea8d49fceb405d5ab357833d23954e328905d5384 /readline/input.c
parent057b35a099f05ecc348479bb573617aa9cf1241c (diff)
downloadgdb-992d0af0616c67c825bd89ca79095c37d1a2acfd.zip
gdb-992d0af0616c67c825bd89ca79095c37d1a2acfd.tar.gz
gdb-992d0af0616c67c825bd89ca79095c37d1a2acfd.tar.bz2
[__GO32__]: Include <pc.h> only if HAVE_SELECT is undefined.
(rl_unget_char, rl_getc) [__GO32__]: Use the go32-specific code only if HAVE_SELECT is undefined.
Diffstat (limited to 'readline/input.c')
-rw-r--r--readline/input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/readline/input.c b/readline/input.c
index 3b48483..a8ba23c 100644
--- a/readline/input.c
+++ b/readline/input.c
@@ -96,7 +96,7 @@ extern Keymap _rl_keymap;
extern int _rl_convert_meta_chars_to_ascii;
-#if defined (__GO32__)
+#if defined (__GO32__) && !defined (HAVE_SELECT)
# include <pc.h>
#endif /* __GO32__ */
@@ -176,7 +176,7 @@ rl_unget_char (key)
static void
rl_gather_tyi ()
{
-#if defined (__GO32__)
+#if defined (__GO32__) && !defined (HAVE_SELECT)
char input;
if (isatty (0) && kbhit () && ibuffer_space ())
@@ -397,7 +397,7 @@ rl_getc (stream)
int result, flags;
unsigned char c;
-#if defined (__GO32__)
+#if defined (__GO32__) && !defined (HAVE_TERMIOS_H)
if (isatty (0))
return (getkey () & 0x7F);
#endif /* __GO32__ */
@@ -448,7 +448,7 @@ rl_getc (stream)
}
#endif /* _POSIX_VERSION && EAGAIN && O_NONBLOCK */
-#if !defined (__GO32__)
+#if !defined (__GO32__) || defined (HAVE_TERMIOS_H)
/* If the error that we received was SIGINT, then try again,
this is simply an interrupted system call to read ().
Otherwise, some error ocurred, also signifying EOF. */