Files
termux-packages/packages/tree/strverscmp.patch
termux-pacman-bot 5cfef17a9d tree: Declare strverscmp
%ci:no-build
2023-04-03 15:01:31 +00:00

22 lines
595 B
Diff

--- ./strverscmp.c.orig 2022-04-17 17:30:13.079263409 +0000
+++ ./strverscmp.c 2022-04-17 17:37:27.495463877 +0000
@@ -21,7 +21,7 @@
/* #include "libiberty.h" */
/* #include "safe-ctype.h" */
#include <ctype.h>
-#ifndef __linux__
+#if defined(__ANDROID__) || !defined(__linux__)
/*
@deftypefun int strverscmp (const char *@var{s1}, const char *@var{s2})
--- 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