SYSTEM_INFO on Windows no longer available
cyderize opened this issue · 1 comments
cyderize commented
I think version 0.2.8 is failing on Windows at the moment because of the removal of SYSTEM_INFO
and GetSystemInfo
from libc (rust-lang/libc@c4d4c70). I think they're available in winapi
now instead.
~\num_cpus-0.2.8\src\lib.rs:16:26: 16:43 error: use of undeclared type name `libc::SYSTEM_INFO` [E0412]
~\num_cpus-0.2.8\src\lib.rs:16 let mut sysinfo: libc::SYSTEM_INFO = ::std::mem::uninitialized();
^~~~~~~~~~~~~~~~~
~\num_cpus-0.2.8\src\lib.rs:16:26: 16:43 help: run `rustc --explain E0412` to see a detailed explanation
~\num_cpus-0.2.8\src\lib.rs:17:9: 17:28 error: unresolved name `libc::GetSystemInfo` [E0425]
~\num_cpus-0.2.8\src\lib.rs:17 libc::GetSystemInfo(&mut sysinfo);
^~~~~~~~~~~~~~~~~~~
~\num_cpus-0.2.8\src\lib.rs:17:9: 17:28 help: run `rustc --explain E0425` to see a detailed explanation
error: aborting due to 2 previous errors
vinipsmaker commented
It's failing for us too: https://ci.appveyor.com/project/MaidSafe-QA/crust/build/1.0.424/job/5qlaj31q7vnah2i9#L194