backtraces: on android (bionic), there is no execinfo.h

pull/1927/head
Delyan Angelov 2019-09-11 13:31:29 +03:00 committed by Alexander Medvednikov
parent 25af013896
commit 3588c3363d
1 changed files with 4 additions and 0 deletions

View File

@ -18,17 +18,21 @@ CommonCHeaders = '
#include <unistd.h> // sleep
#endif
#ifdef __APPLE__
#include <libproc.h> // proc_pidpath
#include <execinfo.h> // backtrace and backtrace_symbols_fd
#endif
#ifdef __linux__
#ifndef __BIONIC__
#include <execinfo.h> // backtrace and backtrace_symbols_fd
#endif
#pragma weak backtrace
#pragma weak backtrace_symbols_fd
#endif
#ifdef __linux__
#include <sys/types.h>
#include <sys/wait.h> // os__wait uses wait on nix