diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-03-13 13:34:24 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-03-13 13:34:24 +0100 |
commit | 00f2e3139f8760056a8526245524c952cc0dfb98 (patch) | |
tree | 0a9cad942961ddfed56b1eb240b60ebb95b9573e /include/my_stacktrace.h | |
parent | 1cbc3790d37cab5a2309b055e35945099b48d4c2 (diff) | |
download | mariadb-git-00f2e3139f8760056a8526245524c952cc0dfb98.tar.gz |
alternative method of resolving addresses for safemalloc and crash handler.
don't link with libbfd, exec addr2line, if it's available at run time
Diffstat (limited to 'include/my_stacktrace.h')
-rw-r--r-- | include/my_stacktrace.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/my_stacktrace.h b/include/my_stacktrace.h index 65e2fc9b814..ebc30ed8b59 100644 --- a/include/my_stacktrace.h +++ b/include/my_stacktrace.h @@ -56,7 +56,11 @@ void my_set_exception_pointers(EXCEPTION_POINTERS *ep); #endif #endif -#ifdef HAVE_BFD_H +#ifndef _WIN32 +#define MY_ADDR_RESOLVE_FORK +#endif + +#if defined(HAVE_BFD_H) || defined(MY_ADDR_RESOLVE_FORK) #define HAVE_MY_ADDR_RESOLVE 1 #endif |