tree: Declare strverscmp

%ci:no-build
This commit is contained in:
termux-pacman-bot
2023-04-03 15:01:31 +00:00
parent 06bbae800c
commit 5cfef17a9d
2 changed files with 10 additions and 8 deletions

View File

@@ -6,7 +6,6 @@ TERMUX_PKG_VERSION="2.1.0"
TERMUX_PKG_SRCURL="https://gitlab.com/OldManProgrammer/unix-tree/-/archive/${TERMUX_PKG_VERSION}/unix-tree-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=e9f829a03996451bcf90fae4fdee4285bece6dc1a89de92a3f8e6cad29e03c71
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_ENABLE_CLANG16_PORTING=false
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
TERMUX_PKG_DEPENDS="libandroid-support"
TERMUX_PKG_BUILD_IN_SRC=true

View File

@@ -9,10 +9,13 @@
/*
@deftypefun int strverscmp (const char *@var{s1}, const char *@var{s2})
@@ -157,4 +157,4 @@
return state;
}
}
-#endif
\ No newline at end of file
+#endif
--- a/tree.h
+++ b/tree.h
@@ -307,6 +307,6 @@
/* We use the strverscmp.c file if we're not linux: */
-#ifndef __linux__
+#if defined(__ANDROID__) || !defined(__linux__)
int strverscmp (const char *s1, const char *s2);
#endif