Skip to content

Commit

Permalink
gperf: Make c++ 17 (and ndk 26) compatible
Browse files Browse the repository at this point in the history
See #17863
  • Loading branch information
fornwall authored and Grimler91 committed Oct 2, 2023
1 parent c2c3f47 commit 68661d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gperf/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A perfect hash function generator"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.1
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gperf/gperf-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2
TERMUX_PKG_DEPENDS="libc++"
Expand Down
12 changes: 12 additions & 0 deletions packages/gperf/lib-getline.cc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -u -r ../orig-src/lib/getline.cc ./lib/getline.cc
--- ../orig-src/lib/getline.cc 2023-10-02 11:41:12.201611420 +0000
+++ ./lib/getline.cc 2023-10-02 11:43:12.677004096 +0000
@@ -55,7 +55,7 @@

for (;;)
{
- register int c = getc (stream);
+ int c = getc (stream);

/* We always want at least one char left in the buffer, since we
always (unless we get an error while reading the first char)

0 comments on commit 68661d9

Please sign in to comment.