From c0ce5cf24f07dbabfd9af900bea0049157961f14 Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Wed, 16 Feb 2022 18:36:13 +0530 Subject: [PATCH] libowfat: add new patch for new compilers (aka NDK r23 post cleaning part) --- packages/libowfat/build.sh | 2 +- packages/libowfat/io_internal.h.patch | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 packages/libowfat/io_internal.h.patch diff --git a/packages/libowfat/build.sh b/packages/libowfat/build.sh index 0246733e3..a270c94f1 100644 --- a/packages/libowfat/build.sh +++ b/packages/libowfat/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="GPL reimplementation of libdjb" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=0.32 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=http://www.fefe.de/libowfat/libowfat-$TERMUX_PKG_VERSION.tar.xz TERMUX_PKG_SHA256=f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1 TERMUX_PKG_BUILD_IN_SRC=true diff --git a/packages/libowfat/io_internal.h.patch b/packages/libowfat/io_internal.h.patch new file mode 100644 index 000000000..3f2924304 --- /dev/null +++ b/packages/libowfat/io_internal.h.patch @@ -0,0 +1,25 @@ +From 67729f54c2e7a24b2bebfa23b75afe607c09a67a Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping +Date: Thu, 26 Nov 2020 19:28:03 +0100 +Subject: [PATCH] Fix build with -fno-common or GCC 10 + +--- + io_internal.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/io_internal.h b/io_internal.h +index 6d37c11..3e378d9 100644 +--- a/io_internal.h ++++ b/io_internal.h +@@ -83,7 +83,7 @@ my_extern array io_pollfds; + my_extern long first_readable; + my_extern long first_writeable; + +-my_extern long first_deferred; ++extern long first_deferred; + + my_extern enum __io_waitmode { + UNDECIDED, +-- +2.27.0 +