diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2016-10-15 02:27:28 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2016-10-15 02:27:28 +0200 |
commit | 057c560ee45c61d172ed0ed762b0b33b37349e5c (patch) | |
tree | fc9c5b59b121c86aeb78ba829535ceacbd8ebc81 | |
parent | 9208b87f18b3dc84bb22551957a8e2f709e768a8 (diff) | |
download | mariadb-git-057c560ee45c61d172ed0ed762b0b33b37349e5c.tar.gz |
MDEV-10943 . Workaround linker error on Linux. Linux does not actually use __bss_start, put __bss_start into #ifndef __linux__ section
-rw-r--r-- | mysys/stacktrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/stacktrace.c b/mysys/stacktrace.c index 395659238b3..e22fb4162ec 100644 --- a/mysys/stacktrace.c +++ b/mysys/stacktrace.c @@ -38,13 +38,13 @@ static char *heap_start; -#ifdef HAVE_BSS_START +#if(defined HAVE_BSS_START) && !(defined __linux__) extern char *__bss_start; #endif void my_init_stacktrace() { -#ifdef HAVE_BSS_START +#if(defined HAVE_BSS_START) && !(defined __linux__) heap_start = (char*) &__bss_start; #endif } |