man: fix build with ndk r22

Fixes error
```
In file included from man_html.c:23:
In file included from /home/builder/.termux-build/_cache/android-r22-api-24-v3/bin/../sysroot/usr/include/ctype.h:39:
/home/builder/.termux-build/_cache/android-r22-api-24-v3/bin/../sysroot/usr/include/bits/ctype_inlines.h:81:27: error: static declaration of 'isblank' follows non-static declaration
In file included from mdoc_html.c:23:
In file included from /home/builder/.termux-build/_cache/android-r22-api-24-v3/bin/../sysroot/usr/include/ctype.h:39:
/home/builder/.termux-build/_cache/android-r22-api-24-v3/bin/../sysroot/usr/include/bits/ctype_inlines.h:81:27: error: __BIONIC_CTYPE_INLINE int isblank(int __ch) {static declaration of 'isblank' follows non-static declaration
```
This commit is contained in:
Henrik Grimler 2020-12-26 11:09:17 +01:00
parent 7e3912d05f
commit ac761539f0
1 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Man page viewer from the mandoc toolset"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.14.5
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=http://mdocml.bsd.lv/snapshots/mandoc-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7
TERMUX_PKG_DEPENDS="less,libandroid-glob,zlib"
@ -17,11 +17,10 @@ termux_step_pre_configure() {
echo "MANDIR=\"$TERMUX_PREFIX/share/man\"" >> configure.local
echo "CFLAGS=\"$CFLAGS -std=c99 -DNULL=0 $CPPFLAGS\"" >> configure.local
echo "LDFLAGS=\"$LDFLAGS\"" >> configure.local
for HAVING in HAVE_FGETLN HAVE_MMAP HAVE_STRLCAT HAVE_STRLCPY HAVE_SYS_ENDIAN HAVE_ENDIAN HAVE_NTOHL HAVE_NANOSLEEP HAVE_O_DIRECTORY; do
for HAVING in HAVE_FGETLN HAVE_MMAP HAVE_STRLCAT HAVE_STRLCPY HAVE_SYS_ENDIAN HAVE_ENDIAN HAVE_NTOHL HAVE_NANOSLEEP HAVE_O_DIRECTORY HAVE_ISBLANK HAVE_SQLITE3; do
echo "$HAVING=1" >> configure.local
done
echo "HAVE_MANPATH=0" >> configure.local
echo "HAVE_SQLITE3=1" >> configure.local
}
termux_step_create_debscripts() {