opnsense-ports/databases/mysql91-server/files/patch-include_my__stacktrace.h
Franco Fichtner 9f509279e3 */*: sync with upstream
Taken from: FreeBSD
2025-01-10 15:52:40 +01:00

11 lines
517 B
C

--- include/my_stacktrace.h.orig 2024-04-10 06:26:28 UTC
+++ include/my_stacktrace.h
@@ -45,7 +45,7 @@
_WIN32 - Windows
HAVE_EXT_BACKTRACE - Unixes without backtrace(3)
*/
-#if defined(HAVE_BACKTRACE) || defined(_WIN32) || defined(HAVE_EXT_BACKTRACE)
+#if (defined(HAVE_BACKTRACE) && (defined(__aarch64__) || defined(__amd64__))) || defined(_WIN32) || defined(HAVE_EXT_BACKTRACE)
#define HAVE_STACKTRACE 1
void my_init_stacktrace();
void my_print_stacktrace(const uchar *stack_bottom, ulong thread_stack);