Skip to content

Commit 7860333

Browse files
committed
1 parent f65901e commit 7860333

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

storage/xtradb/include/os0stacktrace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ this program; if not, write to the Free Software Foundation, Inc.,
2020
#ifndef os0stacktrace_h
2121
#define os0stacktrace_h
2222

23-
#ifdef __linux__
23+
#if defined (__linux__) && HAVE_BACKTRACE && HAVE_BACKTRACE_SYMBOLS
2424
#if HAVE_EXECINFO_H
2525
#include <execinfo.h>
2626
#endif
@@ -40,5 +40,5 @@ os_stacktrace_print(
4040
siginfo_t* info, /*!< in: signal information */
4141
void* ucontext);/*!< in: signal context */
4242

43-
#endif /* __linux__ */
43+
#endif /* defined (__linux__) && HAVE_BACKTRACE && HAVE_BACKTRACE_SYMBOLS */
4444
#endif /* os0stacktrace.h */

storage/xtradb/srv/srv0start.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ innobase_start_or_create_for_mysql(void)
16461646
stacktrace feature. */
16471647

16481648
if (srv_use_stacktrace) {
1649-
#ifdef __linux__
1649+
#if defined (__linux__) && HAVE_BACKTRACE && HAVE_BACKTRACE_SYMBOLS
16501650
struct sigaction sigact;
16511651

16521652
sigact.sa_sigaction = os_stacktrace_print;
@@ -1659,7 +1659,7 @@ innobase_start_or_create_for_mysql(void)
16591659
srv_use_stacktrace = FALSE;
16601660

16611661
}
1662-
#endif /* __linux__ */
1662+
#endif /* defined (__linux__) && HAVE_BACKTRACE && HAVE_BACKTRACE_SYMBOLS */
16631663
}
16641664

16651665
#ifdef UNIV_DEBUG

0 commit comments

Comments
 (0)