You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is the error I get, using rust distribution nightly-x86_64-pc-windows-msvc (also tried gnu, same error)
error[E0425]: cannot find function `sysconf` in crate `libc`
--> C:\Users\Ruben Anders\.cargo\registry\src\github.com-1ecc6299db9ec823\sys-info-0.5.10\lib.rs:396:34
|
396 | let buf_size = libc::sysconf(libc::_SC_HOST_NAME_MAX) as usize;
| ^^^^^^^ not found in `libc`
error[E0425]: cannot find value `_SC_HOST_NAME_MAX` in crate `libc`
--> C:\Users\Ruben Anders\.cargo\registry\src\github.com-1ecc6299db9ec823\sys-info-0.5.10\lib.rs:396:48
|
396 | let buf_size = libc::sysconf(libc::_SC_HOST_NAME_MAX) as usize;
| ^^^^^^^^^^^^^^^^^ not found in `libc`
error[E0425]: cannot find function `gethostname` in crate `libc`
--> C:\Users\Ruben Anders\.cargo\registry\src\github.com-1ecc6299db9ec823\sys-info-0.5.10\lib.rs:398:22
|
398 | if libc::gethostname(buf.as_mut_ptr() as *mut libc::c_char, buf_size) < 0 {
| ^^^^^^^^^^^ help: a function with a similar name exists: `getsockname`
|
::: C:\Users\Ruben Anders\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.72\src\windows\mod.rs:556:5
|
556 | / pub fn getsockname(
557 | | s: SOCKET,
558 | | name: *mut ::sockaddr,
559 | | nameln: *mut ::c_int,
560 | | ) -> ::c_int;
| |_________________- similarly named function `getsockname` defined here
The text was updated successfully, but these errors were encountered:
Below is the error I get, using rust distribution
nightly-x86_64-pc-windows-msvc
(also tried gnu, same error)The text was updated successfully, but these errors were encountered: