https://jira.mariadb.org/browse/MDEV-24131 diff --git a/unittest/mysys/stacktrace-t.c b/unittest/mysys/stacktrace-t.c index 8fa0db15b36..67eb099028e 100644 --- a/unittest/mysys/stacktrace-t.c +++ b/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];