termux-packages/packages/graphviz/lib-gvc-gvconfig.c.patch

21 lines
673 B
Diff
Raw Permalink Normal View History

2021-12-02 14:13:31 +00:00
--- ./lib/gvc/gvconfig.c 2021-10-23 05:32:14.000000000 +0530
+++ ./lib/gvc/gvconfig.c.mod 2021-12-08 16:35:08.084370882 +0530
@@ -383,7 +383,7 @@
}
len -= strlen(SUFFIX);
2021-12-02 14:13:31 +00:00
-#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
+#if (defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)) || defined(__ANDROID__)
// Windows libraries do not have a version in the filename
2021-12-02 14:13:31 +00:00
#elif defined(GVPLUGIN_VERSION)
@@ -433,7 +433,7 @@
return false;
}
#else
2021-12-02 14:13:31 +00:00
- static const char SO[] = ".so.";
+ static const char SO[] = ".so";
2024-02-12 00:35:20 +00:00
if (len < strlen(SO) || !startswith(filepath + len - strlen(SO), SO)) {
2021-12-02 14:13:31 +00:00
return false;
2024-02-12 00:35:20 +00:00
}