diff options
Diffstat (limited to 'sal/osl/unx/backtrace.h')
-rw-r--r-- | sal/osl/unx/backtrace.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/sal/osl/unx/backtrace.h b/sal/osl/unx/backtrace.h index 79fb58025e2e..61d63ec94d4a 100644 --- a/sal/osl/unx/backtrace.h +++ b/sal/osl/unx/backtrace.h @@ -58,27 +58,8 @@ struct frame { #endif /* defined SOLARIS || FREEBSD || NETBSD || OPENBSD */ -#if defined (LINUX) && defined (SPARC) -#ifdef __cplusplus -extern "C" { -#endif - -/* backtrace function with same behaviour as defined in GNU libc */ - -int backtrace( void **buffer, int max_frames ); - -void backtrace_symbols_fd( void **buffer, int size, int fd ); - -/* no frame.h on linux sparc */ -struct frame { - long arg0[8]; - long arg1[6]; - struct frame *fr_savfp; - long fr_savpc; -}; - -#ifdef __cplusplus -} /* extern "C" */ +#if defined (LINUX) +#include <execinfo.h> #endif #endif /* defined LINUX && SPARC */ |