1 |
wired 10/02/10 10:56:16 |
2 |
|
3 |
Added: mc-4.7.0.2_syntax_fix.patch |
4 |
mc-4.7.0.2_hotlist_fix.patch |
5 |
Log: |
6 |
[app-misc/mc-4.7.0.2-r1] added patches that fix bugs #298997 and #300913 |
7 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-misc/mc/files/mc-4.7.0.2_syntax_fix.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/mc/files/mc-4.7.0.2_syntax_fix.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/mc/files/mc-4.7.0.2_syntax_fix.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: mc-4.7.0.2_syntax_fix.patch |
16 |
=================================================================== |
17 |
--- a/misc/syntax/Syntax |
18 |
+++ b/misc/syntax/Syntax |
19 |
@@ -140,5 +140,5 @@ |
20 |
include spec.syntax |
21 |
|
22 |
-file ..\*\\.repo$ YUM\sRepo File |
23 |
+file ..\*\\.repo$ YUM\sRepo\sFile |
24 |
include yum-repo.syntax |
25 |
|
26 |
|
27 |
|
28 |
1.1 app-misc/mc/files/mc-4.7.0.2_hotlist_fix.patch |
29 |
|
30 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/mc/files/mc-4.7.0.2_hotlist_fix.patch?rev=1.1&view=markup |
31 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/mc/files/mc-4.7.0.2_hotlist_fix.patch?rev=1.1&content-type=text/plain |
32 |
|
33 |
Index: mc-4.7.0.2_hotlist_fix.patch |
34 |
=================================================================== |
35 |
--- a/lib/tty/tty-internal.h |
36 |
+++ b/lib/tty/tty-internal.h |
37 |
@@ -8,4 +8,15 @@ |
38 |
|
39 |
#include "lib/global.h" /* include <glib.h> */ |
40 |
+ |
41 |
+/* Taken from S-Lang's slutty.c */ |
42 |
+#ifdef ultrix /* Ultrix gets _POSIX_VDISABLE wrong! */ |
43 |
+# define NULL_VALUE -1 |
44 |
+#else |
45 |
+# ifdef _POSIX_VDISABLE |
46 |
+# define NULL_VALUE _POSIX_VDISABLE |
47 |
+# else |
48 |
+# define NULL_VALUE 255 |
49 |
+# endif |
50 |
+#endif |
51 |
|
52 |
/* If true lines are shown by spaces */ |
53 |
--- a/lib/tty/tty-ncurses.c |
54 |
+++ b/lib/tty/tty-ncurses.c |
55 |
@@ -63,4 +63,5 @@ |
56 |
|
57 |
/*** file scope macro definitions **************************************/ |
58 |
+ |
59 |
#if defined(_AIX) && !defined(CTRL) |
60 |
# define CTRL(x) ((x) & 0x1f) |
61 |
@@ -159,4 +160,6 @@ |
62 |
/* use Ctrl-g to generate SIGINT */ |
63 |
cur_term->Nttyb.c_cc[VINTR] = CTRL ('g'); /* ^g */ |
64 |
+ /* disable SIGQUIT to allow use Ctrl-\ key */ |
65 |
+ cur_term->Nttyb.c_cc[VQUIT] = NULL_VALUE; |
66 |
tcsetattr (cur_term->Filedes, TCSANOW, &cur_term->Nttyb); |