Update mc to 4.8.26, Add a patch for tty-ncurses.h (#7288)

This commit is contained in:
Pooya Moradi 2021-08-08 20:35:41 +04:30 committed by GitHub
parent de3faf46d9
commit e98ad09f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 3 deletions

View File

@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.midnight-commander.org/
TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.8.25
TERMUX_PKG_REVISION=2
TERMUX_PKG_VERSION=4.8.26
TERMUX_PKG_SRCURL=http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=ffc19617f20ebb23330acd3998b7fd559a042d172fa55746d53d246697b2548a
TERMUX_PKG_SHA256=c6deadc50595f2d9a22dc6c299a9f28b393e358346ebf6ca444a8469dc166c27
TERMUX_PKG_DEPENDS="libandroid-support, libiconv, ncurses, glib, openssl, libssh2, zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_lib_util_openpty=no

View File

@ -0,0 +1,16 @@
diff --git a/lib/tty/tty-ncurses.h b/lib/tty/tty-ncurses.h
index 9962c7c41..db8e99101 100644
--- a/lib/tty/tty-ncurses.h
+++ b/lib/tty/tty-ncurses.h
@@ -2,6 +2,11 @@
#ifndef MC__TTY_NCURSES_H
#define MC__TTY_NCURSES_H
+/* for cchar_t, getcchar(), setcchar() */
+#ifndef _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_SOURCE_EXTENDED
+#endif
+
#ifdef USE_NCURSES
#ifdef HAVE_NCURSES_CURSES_H
#include <ncurses/curses.h>