Skip to content

Commit

Permalink
MDEV-7369: MariaDB build fails when XTRADB_STORAGE_ENGINE enabled
Browse files Browse the repository at this point in the history
Patch by James Taylor.
  • Loading branch information
Jan Lindström committed Dec 28, 2014
1 parent bc21e7a commit de09076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions storage/xtradb/include/os0stacktrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ this program; if not, write to the Free Software Foundation, Inc.,
#ifndef os0stacktrace_h
#define os0stacktrace_h

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

#endif /* __linux__ */
#endif /* defined (__linux__) && HAVE_BACKTRACE && HAVE_BACKTRACE_SYMBOLS */
#endif /* os0stacktrace.h */
4 changes: 2 additions & 2 deletions storage/xtradb/srv/srv0start.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,7 @@ innobase_start_or_create_for_mysql(void)
stacktrace feature. */

if (srv_use_stacktrace) {
#ifdef __linux__
#if defined (__linux__) && HAVE_BACKTRACE && HAVE_BACKTRACE_SYMBOLS
struct sigaction sigact;

sigact.sa_sigaction = os_stacktrace_print;
Expand All @@ -1646,7 +1646,7 @@ innobase_start_or_create_for_mysql(void)
srv_use_stacktrace = FALSE;

}
#endif /* __linux__ */
#endif /* defined (__linux__) && HAVE_BACKTRACE && HAVE_BACKTRACE_SYMBOLS */
}

#ifdef UNIV_DEBUG
Expand Down

0 comments on commit de09076

Please sign in to comment.