1
0
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:
Delyan Angelov 2019-09-11 13:31:29 +03:00 committed by Alexander Medvednikov
parent 25af013896
commit 3588c3363d

View File

@ -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