From be9bda4d938eabeab6e8cbfcba591208aabe9e49 Mon Sep 17 00:00:00 2001 From: wanglei Date: Tue, 7 Jul 2026 09:55:47 +0800 Subject: [PATCH] support nuttx target os When you use errno() in nuttx os, you will get link error `undefined reference to `errno_location'` See https://doc.rust-lang.org/rustc/platform-support/nuttx.html for more information about Nuttx target. Signed-off-by: wanglei --- src/unix.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix.rs b/src/unix.rs index 10d2f05..77898b4 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -77,6 +77,7 @@ extern "C" { target_os = "netbsd", target_os = "android", target_os = "espidf", + target_os = "nuttx", target_os = "vxworks", target_os = "cygwin", target_env = "newlib"