MDEV-10943 . Workaround linker error on Linux. Linux does not actually use __bss_start, put __bss_start into #ifndef __linux__ section

This commit is contained in:
Vladislav Vaintroub 2016-10-15 02:27:28 +02:00
parent 9208b87f18
commit 057c560ee4

View file

@ -38,13 +38,13 @@
static char *heap_start; static char *heap_start;
#ifdef HAVE_BSS_START #if(defined HAVE_BSS_START) && !(defined __linux__)
extern char *__bss_start; extern char *__bss_start;
#endif #endif
void my_init_stacktrace() void my_init_stacktrace()
{ {
#ifdef HAVE_BSS_START #if(defined HAVE_BSS_START) && !(defined __linux__)
heap_start = (char*) &__bss_start; heap_start = (char*) &__bss_start;
#endif #endif
} }