From cbb3da2b593d9e9582fd943210f8a5e89d33e2b5 Mon Sep 17 00:00:00 2001
From: Yuri Astrakhan <YuriAstrakhan@gmail.com>
Date: Thu, 1 Aug 2024 17:53:26 -0400
Subject: [PATCH] Add QNX NTO platform support

---
 Cargo.toml                  | 2 +-
 crates/as-if-std/Cargo.toml | 2 +-
 src/backtrace/mod.rs        | 1 -
 src/symbolize/gimli.rs      | 1 +
 4 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index ec298d07..917ef12c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,7 +41,7 @@ cpp_demangle = { default-features = false, version = "0.4.0", optional = true, f
 [target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
 miniz_oxide = { version = "0.7.0", default-features = false }
 addr2line = { version = "0.24.0", default-features = false }
-libc = { version = "0.2.146", default-features = false }
+libc = { version = "0.2.156", default-features = false }
 
 [target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies.object]
 version = "0.36.0"
diff --git a/crates/as-if-std/Cargo.toml b/crates/as-if-std/Cargo.toml
index 3590f4d1..2d206d92 100644
--- a/crates/as-if-std/Cargo.toml
+++ b/crates/as-if-std/Cargo.toml
@@ -14,7 +14,7 @@ bench = false
 [dependencies]
 cfg-if = "1.0"
 rustc-demangle = "0.1.21"
-libc = { version = "0.2.146", default-features = false }
+libc = { version = "0.2.156", default-features = false }
 
 [target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
 miniz_oxide = { version = "0.7.0", optional = true, default-features = false }
diff --git a/src/backtrace/mod.rs b/src/backtrace/mod.rs
index 169f645c..75925d97 100644
--- a/src/backtrace/mod.rs
+++ b/src/backtrace/mod.rs
@@ -176,7 +176,6 @@ cfg_if::cfg_if! {
                 unix,
                 not(target_os = "emscripten"),
                 not(all(target_os = "ios", target_arch = "arm")),
-                not(all(target_os = "nto", target_env = "nto70")),
             ),
             all(
                 target_env = "sgx",
diff --git a/src/symbolize/gimli.rs b/src/symbolize/gimli.rs
index 684705e2..8c7051d4 100644
--- a/src/symbolize/gimli.rs
+++ b/src/symbolize/gimli.rs
@@ -224,6 +224,7 @@ cfg_if::cfg_if! {
             target_os = "hurd",
             target_os = "openbsd",
             target_os = "netbsd",
+            target_os = "nto",
             target_os = "android",
         ),
         not(target_env = "uclibc"),