gcal: add patch to fix gnulib compilation with ndk-r23

This commit is contained in:
Henrik Grimler 2021-11-10 20:12:52 +01:00
parent ab76551a76
commit 3481a38fdc
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 24 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Program for calculating and printing calendars"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.1
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gcal/gcal-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=91b56c40b93eee9bda27ec63e95a6316d848e3ee047b5880ed71e5e8e60f61ab
TERMUX_PKG_DEPENDS="ncurses"

View File

@ -0,0 +1,23 @@
--- ./lib/freading.c.orig 2021-11-10 19:59:55.538541462 +0100
+++ ./lib/freading.c 2021-11-10 20:00:12.808525987 +0100
@@ -14,6 +14,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include <stdint.h>
+#include <bits/struct_file.h>
+
#include <config.h>
/* Specification. */
--- ./lib/stdio-impl.h.orig 2021-11-10 19:59:05.885252656 +0100
+++ ./lib/stdio-impl.h 2021-11-10 19:59:26.848567182 +0100
@@ -27,6 +27,8 @@
#endif
#include <errno.h> /* For detecting Plan9. */
+#include <stdint.h>
+#include <bits/struct_file.h>
#if defined __sferror || defined __DragonFly__ || defined __ANDROID__
/* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */