mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
backtraces: on android (bionic), there is no execinfo.h
This commit is contained in:
parent
25af013896
commit
3588c3363d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user