From 683bcfa807d0d66a7c6600c028f0897b957cbe2e Mon Sep 17 00:00:00 2001 From: Philip Dye Date: Thu, 7 May 2026 03:08:55 -0400 Subject: [PATCH] cygwin: fix cpuset_t typo in CPU_ZERO CPU_ZERO at src/unix/cygwin/mod.rs:1712 declares its parameter as &mut cpuset_t, but no type by that name exists in the cygwin module. The struct is cpu_set_t (defined at line 91), and every sibling function (CPU_SET, CPU_CLR, CPU_ISSET, CPU_COUNT, CPU_COUNT_S, CPU_EQUAL) correctly uses cpu_set_t. The typo prevents the cygwin module from compiling on x86_64-pc-cygwin: error[E0425]: cannot find type `cpuset_t` in this scope --> src/unix/cygwin/mod.rs:1712:34 | 1712 | pub fn CPU_ZERO(cpuset: &mut cpuset_t) -> () { | ^^^^^^^^ After this fix, libc and libc-test build cleanly for x86_64-pc-cygwin and the full libc-test suite passes (2968 ctest cases, all other targets green). --- src/unix/cygwin/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/cygwin/mod.rs b/src/unix/cygwin/mod.rs index 56ee0a5d105e..504eec69841e 100644 --- a/src/unix/cygwin/mod.rs +++ b/src/unix/cygwin/mod.rs @@ -1709,7 +1709,7 @@ f! { s as c_int } - pub fn CPU_ZERO(cpuset: &mut cpuset_t) -> () { + pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () { cpuset.bits.fill(0); }