From 72de5535232d0ff956df201810a4b05fd7ed652e Mon Sep 17 00:00:00 2001 From: Santhosh Raju Date: Sat, 4 Jul 2026 18:53:23 +0200 Subject: [PATCH] netbsd: Restore getmntinfo link symbol Restore the link symbol for `getmntinfo` accidentally reverted in https://github.com/rust-lang/libc/commit/1816f6061 - More details in this discussion https://github.com/rust-lang/libc/pull/5243#issuecomment-4883102603 - `__getmntinfo13` implementation: https://github.com/NetBSD/src/blob/b28c8b71e96a8bf47113b3e31dcb078887e82f01/lib/libc/compat/gen/compat___getmntinfo13.c - `statvfs` struct: https://github.com/NetBSD/src/blob/b28c8b71e96a8bf47113b3e31dcb078887e82f01/sys/compat/sys/statvfs.h#L37 --- src/unix/bsd/netbsdlike/netbsd/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 974e63e3807d..2b7a937f2d2e 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -2249,6 +2249,7 @@ extern "C" { ntargets: size_t, hint: *const c_void, ) -> c_int; + #[link_name = "__getmntinfo13"] pub fn getmntinfo(mntbufp: *mut *mut crate::statvfs, flags: c_int) -> c_int; pub fn getvfsstat(buf: *mut crate::statvfs, bufsize: size_t, flags: c_int) -> c_int;