diff options
| author | Jan Lindström <jplindst@mariadb.org> | 2013-11-15 15:24:42 +0200 |
|---|---|---|
| committer | Jan Lindström <jplindst@mariadb.org> | 2013-11-15 15:24:42 +0200 |
| commit | e730c91688226931aba17fc1ba790bda7e156830 (patch) | |
| tree | b78fc582c027e34f38c77c8762b730158124286b /storage/xtradb/include/os0stacktrace.h | |
| parent | 338587d2f4f1c0e977af8e924b13de7428007097 (diff) | |
| download | mariadb-git-e730c91688226931aba17fc1ba790bda7e156830.tar.gz | |
Added test case for new system variable innodb_use_stacktrace and made sure that it can be used only on startup. Fixed compiler problems on solaris and other platforms that do not contain necessary headers and functions.
Diffstat (limited to 'storage/xtradb/include/os0stacktrace.h')
| -rw-r--r-- | storage/xtradb/include/os0stacktrace.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/xtradb/include/os0stacktrace.h b/storage/xtradb/include/os0stacktrace.h index 15921a11be0..58e9a528593 100644 --- a/storage/xtradb/include/os0stacktrace.h +++ b/storage/xtradb/include/os0stacktrace.h @@ -20,8 +20,10 @@ this program; if not, write to the Free Software Foundation, Inc., #ifndef os0stacktrace_h #define os0stacktrace_h -#ifndef __WIN__ +#ifdef __linux__ +#if HAVE_EXECINFO_H #include <execinfo.h> +#endif #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -38,5 +40,5 @@ os_stacktrace_print( siginfo_t* info, /*!< in: signal information */ void* ucontext);/*!< in: signal context */ -#endif /* ! __WIN__ */ +#endif /* __linux__ */ #endif /* os0stacktrace.h */ |
