From a88615c3853b88cd475dbe31860818a8fa4eba67 Mon Sep 17 00:00:00 2001 From: Rusmir Dusko Date: Sat, 7 Dec 2013 10:27:08 +0000 Subject: - Fix build with Option NCURSES, add patches Reported by: "Herbert J. Skuhra" Approved by: pawel / wg (mentors, implicit) --- misc/mc/files/patch-lib__tty__win.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 misc/mc/files/patch-lib__tty__win.c (limited to 'misc/mc/files/patch-lib__tty__win.c') diff --git a/misc/mc/files/patch-lib__tty__win.c b/misc/mc/files/patch-lib__tty__win.c new file mode 100644 index 000000000000..cf51d91365af --- /dev/null +++ b/misc/mc/files/patch-lib__tty__win.c @@ -0,0 +1,20 @@ +--- ./lib/tty/win.c.orig 2013-09-02 19:13:32.000000000 +0200 ++++ ./lib/tty/win.c 2013-12-07 10:33:20.000000000 +0100 +@@ -96,7 +96,7 @@ + void + do_enter_ca_mode (void) + { +- if (mc_global.tty.xterm_flag && smcup != NULL) ++ if (mc_global.tty.xterm_flag) + { + fprintf (stdout, /* ESC_STR ")0" */ ESC_STR "7" ESC_STR "[?47h"); + fflush (stdout); +@@ -108,7 +108,7 @@ + void + do_exit_ca_mode (void) + { +- if (mc_global.tty.xterm_flag && rmcup != NULL) ++ if (mc_global.tty.xterm_flag) + { + fprintf (stdout, ESC_STR "[?47l" ESC_STR "8" ESC_STR "[m"); + fflush (stdout); -- cgit v1.2.3