backtraces: on android (bionic), there is no execinfo.h
parent
25af013896
commit
3588c3363d
|
@ -18,17 +18,21 @@ CommonCHeaders = '
|
||||||
#include <unistd.h> // sleep
|
#include <unistd.h> // sleep
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <libproc.h> // proc_pidpath
|
#include <libproc.h> // proc_pidpath
|
||||||
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
#ifndef __BIONIC__
|
||||||
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||||
|
#endif
|
||||||
#pragma weak backtrace
|
#pragma weak backtrace
|
||||||
#pragma weak backtrace_symbols_fd
|
#pragma weak backtrace_symbols_fd
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h> // os__wait uses wait on nix
|
#include <sys/wait.h> // os__wait uses wait on nix
|
||||||
|
|
Loading…
Reference in New Issue