mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
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:
parent
9208b87f18
commit
057c560ee4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue