From 0507f303d2ac418aefffa22b1e6a03a94e53b4ab Mon Sep 17 00:00:00 2001 From: tnut Date: Sun, 20 Jun 2010 16:19:38 +0200 Subject: mc dans base --- base/mc/mc-4.7.0.2_hotlist_syntax.patch | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 base/mc/mc-4.7.0.2_hotlist_syntax.patch (limited to 'base/mc/mc-4.7.0.2_hotlist_syntax.patch') diff --git a/base/mc/mc-4.7.0.2_hotlist_syntax.patch b/base/mc/mc-4.7.0.2_hotlist_syntax.patch new file mode 100644 index 000000000..2dc115ec2 --- /dev/null +++ b/base/mc/mc-4.7.0.2_hotlist_syntax.patch @@ -0,0 +1,42 @@ +--- /lib/tty/tty-internal.h ++++ /lib/tty/tty-internal.h +@@ -8,4 +8,15 @@ + + #include "lib/global.h" /* include */ ++ ++/* Taken from S-Lang's slutty.c */ ++#ifdef ultrix /* Ultrix gets _POSIX_VDISABLE wrong! */ ++# define NULL_VALUE -1 ++#else ++# ifdef _POSIX_VDISABLE ++# define NULL_VALUE _POSIX_VDISABLE ++# else ++# define NULL_VALUE 255 ++# endif ++#endif + + /* If true lines are shown by spaces */ +--- /lib/tty/tty-ncurses.c ++++ /lib/tty/tty-ncurses.c +@@ -63,4 +63,5 @@ + + /*** file scope macro definitions **************************************/ ++ + #if defined(_AIX) && !defined(CTRL) + # define CTRL(x) ((x) & 0x1f) +@@ -159,4 +160,6 @@ + /* use Ctrl-g to generate SIGINT */ + cur_term->Nttyb.c_cc[VINTR] = CTRL ('g'); /* ^g */ ++ /* disable SIGQUIT to allow use Ctrl-\ key */ ++ cur_term->Nttyb.c_cc[VQUIT] = NULL_VALUE; + tcsetattr (cur_term->Filedes, TCSANOW, &cur_term->Nttyb); + +--- /misc/syntax/Syntax ++++ /misc/syntax/Syntax +@@ -140,5 +140,5 @@ + include spec.syntax + +-file ..\*\\.repo$ YUM\sRepo File ++file ..\*\\.repo$ YUM\sRepo\sFile + include yum-repo.syntax + -- cgit v1.2.3-70-g09d2