mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-09 20:33:24 +00:00
tree: Declare strverscmp
%ci:no-build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user