From eca94be052a26453fe907b3da7362eca9693a6f5 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 25 Oct 2020 20:16:25 +0700 Subject: [PATCH] gimli: Enable backtrace for BSDs --- Cargo.toml | 2 +- src/symbolize/gimli.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f1b6b15d7..3eccbee28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ exclude = ['crates/without_debuginfo', 'crates/macos_frames_test', 'crates/line- cfg-if = "1.0" rustc-demangle = "0.1.4" backtrace-sys = { path = "crates/backtrace-sys", version = "0.1.35", optional = true, default_features = false } -libc = { version = "0.2.45", default-features = false } +libc = { version = "0.2.81", default-features = false } # Optionally enable the ability to serialize a `Backtrace`, controlled through # the `serialize-*` features below. diff --git a/src/symbolize/gimli.rs b/src/symbolize/gimli.rs index ad5410c00..ef11475b9 100644 --- a/src/symbolize/gimli.rs +++ b/src/symbolize/gimli.rs @@ -362,6 +362,10 @@ cfg_if::cfg_if! { any( target_os = "linux", target_os = "fuchsia", + target_os = "freebsd", + target_os = "netbsd", + target_os = "openbsd", + target_os = "dragonfly", ), not(target_env = "uclibc"), ))] {