From owner-svn-ports-head@FreeBSD.ORG Sat Dec 7 10:27:09 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD04643D; Sat, 7 Dec 2013 10:27:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9949E1315; Sat, 7 Dec 2013 10:27:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rB7AR90k006704; Sat, 7 Dec 2013 10:27:09 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rB7AR9lD006701; Sat, 7 Dec 2013 10:27:09 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201312071027.rB7AR9lD006701@svn.freebsd.org> From: Rusmir Dusko Date: Sat, 7 Dec 2013 10:27:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r335823 - head/misc/mc/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Dec 2013 10:27:09 -0000 Author: nemysis Date: Sat Dec 7 10:27:08 2013 New Revision: 335823 URL: http://svnweb.freebsd.org/changeset/ports/335823 Log: - Fix build with Option NCURSES, add patches Reported by: "Herbert J. Skuhra" Approved by: pawel / wg (mentors, implicit) Added: head/misc/mc/files/patch-lib__tty__key.c (contents, props changed) head/misc/mc/files/patch-lib__tty__tty-ncurses.c (contents, props changed) head/misc/mc/files/patch-lib__tty__win.c (contents, props changed) Deleted: head/misc/mc/files/patch-lib-tty-win.c Added: head/misc/mc/files/patch-lib__tty__key.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/mc/files/patch-lib__tty__key.c Sat Dec 7 10:27:08 2013 (r335823) @@ -0,0 +1,18 @@ +--- ./lib/tty/key.c.orig 2013-11-29 19:27:07.000000000 +0100 ++++ ./lib/tty/key.c 2013-12-07 10:51:45.000000000 +0100 +@@ -1946,6 +1946,7 @@ + tty_get_event (struct Gpm_Event *event, gboolean redo_event, gboolean block) + { + int c; ++ static int flag = 0; /* Return value from select */ + #ifdef HAVE_LIBGPM + static struct Gpm_Event ev; /* Mouse event */ + #endif +@@ -1978,7 +1979,6 @@ + while (pending_keys == NULL) + { + int nfd; +- static int flag = 0; /* Return value from select */ + fd_set select_set; + + FD_ZERO (&select_set); Added: head/misc/mc/files/patch-lib__tty__tty-ncurses.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/mc/files/patch-lib__tty__tty-ncurses.c Sat Dec 7 10:27:08 2013 (r335823) @@ -0,0 +1,26 @@ +--- ./lib/tty/tty-ncurses.c.orig 2013-11-29 19:27:07.000000000 +0100 ++++ ./lib/tty/tty-ncurses.c 2013-12-07 10:50:19.000000000 +0100 +@@ -49,6 +49,7 @@ + #include "tty-internal.h" /* mc_tty_normalize_from_utf8() */ + #include "tty.h" + #include "color-internal.h" ++#include "key.h" + #include "mouse.h" + #include "win.h" + +@@ -530,6 +531,7 @@ + if (mc_global.utf8_display || c > 255) + { + int res; ++ unsigned char str[UTF8_CHAR_LEN + 1]; + + res = g_unichar_to_utf8 (c, (char *) str); + if (res == 0) +@@ -540,7 +542,6 @@ + } + else + { +- unsigned char str[UTF8_CHAR_LEN + 1]; + const char *s; + + str[res] = '\0'; Added: head/misc/mc/files/patch-lib__tty__win.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/mc/files/patch-lib__tty__win.c Sat Dec 7 10:27:08 2013 (r335823) @@ -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);