(rl_unget_char, rl_getc) [__GO32__]: Use the go32-specific code only if
HAVE_SELECT is undefined.
extern int _rl_convert_meta_chars_to_ascii;
extern int _rl_convert_meta_chars_to_ascii;
+#if defined (__GO32__) && !defined (HAVE_SELECT)
# include <pc.h>
#endif /* __GO32__ */
# include <pc.h>
#endif /* __GO32__ */
static void
rl_gather_tyi ()
{
static void
rl_gather_tyi ()
{
+#if defined (__GO32__) && !defined (HAVE_SELECT)
char input;
if (isatty (0) && kbhit () && ibuffer_space ())
char input;
if (isatty (0) && kbhit () && ibuffer_space ())
int result, flags;
unsigned char c;
int result, flags;
unsigned char c;
+#if defined (__GO32__) && !defined (HAVE_TERMIOS_H)
if (isatty (0))
return (getkey () & 0x7F);
#endif /* __GO32__ */
if (isatty (0))
return (getkey () & 0x7F);
#endif /* __GO32__ */
}
#endif /* _POSIX_VERSION && EAGAIN && O_NONBLOCK */
}
#endif /* _POSIX_VERSION && EAGAIN && O_NONBLOCK */
+#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. */
/* 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. */