diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-09 13:44:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-09 13:44:00 +0100 |
commit | 3f46caf7af7c10a64bff57cfdf9856e19ae25fba (patch) | |
tree | ac533708db14e462cf35dd16dc9dc323a78221fe /sal/osl/unx/backtrace.c | |
parent | 6b198399090ae5a963ad5075f396716252ccdea1 (diff) |
Dummy implementations of backtrace/backtrace_symbols on Android, too
Change-Id: Ibbab23a9332c3475ab6ce5654999f040e936acfb
Diffstat (limited to 'sal/osl/unx/backtrace.c')
-rw-r--r-- | sal/osl/unx/backtrace.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c index 4741f36ff574..35bea16bf06a 100644 --- a/sal/osl/unx/backtrace.c +++ b/sal/osl/unx/backtrace.c @@ -134,9 +134,8 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) } } -#endif /* defined __sun */ +#elif defined FREEBSD || defined NETBSD || defined OPENBSD || defined(DRAGONFLY) -#if defined FREEBSD || defined NETBSD || defined OPENBSD || defined(DRAGONFLY) #include <dlfcn.h> #include <pthread.h> #include <setjmp.h> @@ -214,17 +213,14 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) fclose( fp ); } } -#endif /* defined FREEBSD */ -#ifdef LINUX +#elif defined LINUX #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif -#endif /* defined LINUX */ - -#if defined( MACOSX ) +#elif defined( MACOSX ) #include <dlfcn.h> #include <stdio.h> @@ -292,9 +288,8 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) } } -#endif /* defined MACOSX */ +#else -#if defined(AIX) int backtrace( void **buffer, int max_frames ) { return 0; @@ -309,6 +304,7 @@ char ** backtrace_symbols(void * const * buffer, int size) void backtrace_symbols_fd( void **buffer, int size, int fd ) { } + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |