Skip to content

Commit 057c560

Browse files
committed
MDEV-10943 . Workaround linker error on Linux. Linux does not actually use __bss_start, put __bss_start into #ifndef __linux__ section
1 parent 9208b87 commit 057c560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysys/stacktrace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838

3939
static char *heap_start;
4040

41-
#ifdef HAVE_BSS_START
41+
#if(defined HAVE_BSS_START) && !(defined __linux__)
4242
extern char *__bss_start;
4343
#endif
4444

4545
void my_init_stacktrace()
4646
{
47-
#ifdef HAVE_BSS_START
47+
#if(defined HAVE_BSS_START) && !(defined __linux__)
4848
heap_start = (char*) &__bss_start;
4949
#endif
5050
}

0 commit comments

Comments
 (0)