void-packages/srcpkgs/mariadb/files/musl-have-stacktrace.patch
2021-04-15 21:23:51 +02:00

19 lines
360 B
Diff

https://jira.mariadb.org/browse/MDEV-24131
--- ./unittest/mysys/stacktrace-t.c
+++ ./unittest/mysys/stacktrace-t.c
@@ -22,6 +22,14 @@
char b_bss[10];
+#ifndef HAVE_STACKTRACE
+int my_safe_print_str(const char* val, size_t max_len)
+{
+ printf("%*s\n", (int) max_len, val);
+ return 0;
+}
+#endif
+
void test_my_safe_print_str()
{
char b_stack[10];