summarylogtreecommitdiffstats
path: root/0001-Added-missing-headers-and-symbols.patch
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2024-04-20 12:52:13 -0300
committerGonzalo Exequiel Pedone2024-04-20 12:52:13 -0300
commit63805c6e974ae56559ca5f15db8126b0a42494e8 (patch)
tree42cf4e2e316f74b5c9dcc60381d4e1636d0ffc97 /0001-Added-missing-headers-and-symbols.patch
downloadaur-android-armv7a-eabi-cairo.tar.gz
New package.
Diffstat (limited to '0001-Added-missing-headers-and-symbols.patch')
-rw-r--r--0001-Added-missing-headers-and-symbols.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/0001-Added-missing-headers-and-symbols.patch b/0001-Added-missing-headers-and-symbols.patch
new file mode 100644
index 000000000000..faadcaa72bfc
--- /dev/null
+++ b/0001-Added-missing-headers-and-symbols.patch
@@ -0,0 +1,27 @@
+--- a/src/cairo-ft-private.h
++++ b/src/cairo-ft-private.h
+@@ -38,6 +38,8 @@
+ #ifndef CAIRO_FT_PRIVATE_H
+ #define CAIRO_FT_PRIVATE_H
+
++#include <freetype/ftcolor.h>
++
+ #include "cairoint.h"
+ #include "cairo-ft.h"
+
+--- a/util/malloc-stats.c
++++ b/util/malloc-stats.c
+@@ -117,7 +117,13 @@
+ for (i = 0; i < num; i++)
+ addrs[i] = (void *) func_stats[i].addr;
+
++#if defined(__ANDROID_API__) && __ANDROID_API__ >= 33
+ strings = backtrace_symbols (addrs, num);
++#else
++ strings = malloc (num * sizeof (char *));
++ for (i = 0; i < num; i++)
++ strings[i] = "unknown";
++#endif
+
+ for (i = 0; i < num; i++) {
+ char *p;