bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] Readline 6.0 under Mingw32 patch


From: Daniel Rodriguez
Subject: [Bug-readline] Readline 6.0 under Mingw32 patch
Date: Mon, 30 Nov 2009 12:41:43 +0100

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]