2
0

mingw_fd_set.patch 902 B

1234567891011121314151617181920212223242526
  1. diff --git a/input.c b/input.c
  2. index 6f038d4..da4da45 100644
  3. --- a/input.c
  4. +++ b/input.c
  5. @@ -818,7 +820,7 @@ rl_getc (FILE *stream)
  6. /* We know at this point that _rl_caught_signal == 0 */
  7. #if defined (__MINGW32__)
  8. - if (isatty (fd)
  9. + if (isatty (fd))
  10. return (_getch ()); /* "There is no error return." */
  11. #endif
  12. result = 0;
  13. diff --git a/rlprivate.h b/rlprivate.h
  14. index d87d07a..cb9cf17 100644
  15. --- a/rlprivate.h
  16. +++ b/rlprivate.h
  17. @@ -303,7 +303,7 @@ extern int _rl_pushed_input_available (void);
  18. extern int _rl_timeout_init (void);
  19. extern int _rl_timeout_handle_sigalrm (void);
  20. -#if defined (_POSIXSELECT_H_)
  21. +#if defined (RL_TIMEOUT_USE_SELECT)
  22. /* use as a sentinel for fd_set, struct timeval, and sigset_t definitions */
  23. extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *, const sigset_t *);
  24. #endif