Commit db2a2173 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

Fix for mac

parent 6e09e7c1
...@@ -42,13 +42,16 @@ extern char *__bss_start; ...@@ -42,13 +42,16 @@ extern char *__bss_start;
#define PTR_SANE(p) (p) #define PTR_SANE(p) (p)
#endif /* __linux */ #endif /* __linux */
#ifdef __linux__
void my_init_stacktrace() void my_init_stacktrace()
{ {
#ifdef __linux__
heap_start = (char*) &__bss_start; heap_start = (char*) &__bss_start;
#endif /* __linux */
} }
#ifdef __linux__
static void print_buffer(char *buffer, size_t count) static void print_buffer(char *buffer, size_t count)
{ {
const char s[]= " "; const char s[]= " ";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment