From 2df514e037f5ffc93b598c69bb44ceb7c0c6f361 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Sat, 7 Mar 2026 16:44:26 +0800 Subject: [PATCH] nuttx: Add _SC_HOST_NAME_MAX constant Add the missing _SC_HOST_NAME_MAX sysconf constant for NuttX platform. This constant is used to get the maximum length of a host name. --- src/unix/nuttx/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/nuttx/mod.rs b/src/unix/nuttx/mod.rs index e3ad7bafd153c..150dc43557d29 100644 --- a/src/unix/nuttx/mod.rs +++ b/src/unix/nuttx/mod.rs @@ -512,6 +512,7 @@ pub const FIONBIO: i32 = 0x30a; pub const _SC_PAGESIZE: i32 = 0x36; pub const _SC_THREAD_STACK_MIN: i32 = 0x58; pub const _SC_GETPW_R_SIZE_MAX: i32 = 0x25; +pub const _SC_HOST_NAME_MAX: i32 = 0x26; // signal.h pub const SIGHUP: c_int = 1;