Hi,

Although I read in the 6.0 Changelog that several changes had been
introduced to compile under Mingw, it has been my experience that a couple
of small changes are required in signals.c to achieve successful
compilation.

SIGQUIT and SIGTSTP related code is always '#if defined' except at the end
of the file, to produce the special control characters.

The following patch allows compilation (also attached)

diff -c -r -N readline-6.0.orig/signals.c readline-6.0.new/signals.c
*** readline-6.0.orig/signals.c Fri Jan 23 16:57:00 2009
--- readline-6.0.new/signals.c  Mon Nov 30 12:32:40 2009
***************
*** 592,599 ****
--- 592,603 ----
    switch (sig)
      {
      case SIGINT:  c = _rl_intr_char; break;
+ #if defined (SIGQUIT)
      case SIGQUIT: c = _rl_quit_char; break;
+ #endif
+ #if defined (SIGTSTP)
      case SIGTSTP: c = _rl_susp_char; break;
+ #endif
      default: return;
      }


Best regards

Daniel

Attachment: readline-6.0.mingw32.patch
Description: Binary data

_______________________________________________
Bug-readline mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to