From 430b783269262185201724109a07d3e9a937bca3 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 9 May 2005 19:42:03 +0000 Subject: * readline/aclocal.m4: Use AC_TRY_LINK to check for mbstate_t. * readline/complete.c (pwd.h): Guard with HAVE_PWD_H. (getpwent): Guard with HAVE_GETPWENT. (rl_username_completion_function): Guard use of getpwent. (endpwent): Likewise. * readline/config.h.in (HAVE_FCNTL): New macro. (HAVE_GETPWENT): Likewise. (HAVE_GETPWNAM): Likewise. (HAVE_GETPWUID): Likewise. (HAVE_KILL): Likewise. (HAVE_PWD_H): Likewise. * readline/configure: Regenerated. * readline/configure.in: Handle MinGW when cross compiling. Check for getpwnam, getpwent, getpwuid, kill, and pwd.h. * readline/display.c (rl_clear_screen): Treat Windows like DOS. (insert_some_chars): Likewise. (delete_chars): Likewise. * readline/shell.c (pwd.h): Guard with HAVE_PWD_H. (getpwuid): Guard with HAVE_GETPWUID. (sh_unset_nodelay_mode): Guard use of fnctl with HAVE_FNCTL_H. * readline/signals.c (rl_signal_handler): Don't use SIGALRM or SIGQUIT if not defined. Use "raise" if "kill" is not available. (rl_set_signals): Don't set handlers for SIGQUIT or SIGALRM if they are not defined. (rl_clear_signals): Likewise. * readline/tilde.c (pwd.h): Guard with HAVE_PWD_H. (getpwuid): Guard declaration with HAVE_GETPWUID. (getpwnam): Guard declaration with HAVE_GETPWNAM. (tilde_expand_word): Guard use of getpwnam with HAVE_GETPWNAM. --- readline/display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'readline/display.c') diff --git a/readline/display.c b/readline/display.c index e7b7591..b9bb2d3 100644 --- a/readline/display.c +++ b/readline/display.c @@ -1907,9 +1907,9 @@ insert_some_chars (string, count, col) char *string; int count, col; { -#ifdef __MSDOS__ +#if defined(__MSDOS__) || defined(__MINGW32__) _rl_output_some_chars (string, count); -#else /* !__MSDOS__ */ +#else /* !__MSDOS__ && !__MINGW32__ */ /* DEBUGGING */ if (MB_CUR_MAX == 1 || rl_byte_oriented) if (count != col) @@ -1959,7 +1959,7 @@ delete_chars (count) if (count > _rl_screenwidth) /* XXX */ return; -#ifndef __MSDOS__ +#if !defined(__MSDOS__) && !defined(__MINGW32__) if (_rl_term_DC && *_rl_term_DC) { char *buffer; @@ -1972,7 +1972,7 @@ delete_chars (count) while (count--) tputs (_rl_term_dc, 1, _rl_output_character_function); } -#endif /* !__MSDOS__ */ +#endif /* !__MSDOS__ && !__MINGW32__ */ } void -- cgit v1.1