diff --git a/compiler/cheaders.v b/compiler/cheaders.v index 8424b37f98..a7d9a1d5a6 100644 --- a/compiler/cheaders.v +++ b/compiler/cheaders.v @@ -18,17 +18,21 @@ CommonCHeaders = ' #include // sleep #endif + #ifdef __APPLE__ #include // proc_pidpath #include // backtrace and backtrace_symbols_fd #endif #ifdef __linux__ +#ifndef __BIONIC__ #include // backtrace and backtrace_symbols_fd +#endif #pragma weak backtrace #pragma weak backtrace_symbols_fd #endif + #ifdef __linux__ #include #include // os__wait uses wait on nix