Skip to content

Commit cc29869

Browse files
SteveLauCgitbot
authored and
gitbot
committed
fix: hurd build, stat64.st_fsid was renamed to st_dev
1 parent 4487be9 commit cc29869

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ miniz_oxide = { version = "0.7.0", optional = true, default-features = false }
3434
addr2line = { version = "0.22.0", optional = true, default-features = false }
3535

3636
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
37-
libc = { version = "0.2.162", default-features = false, features = [
37+
libc = { version = "0.2.167", default-features = false, features = [
3838
'rustc-dep-of-std',
3939
], public = true }
4040

std/src/os/hurd/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ pub trait MetadataExt {
298298
#[stable(feature = "metadata_ext", since = "1.1.0")]
299299
impl MetadataExt for Metadata {
300300
fn st_dev(&self) -> u64 {
301-
self.as_inner().as_inner().st_fsid as u64
301+
self.as_inner().as_inner().st_dev as u64
302302
}
303303
fn st_ino(&self) -> u64 {
304304
self.as_inner().as_inner().st_ino as u64

std/src/sys/pal/unix/os.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,13 @@ pub fn current_exe() -> io::Result<PathBuf> {
427427
pub fn current_exe() -> io::Result<PathBuf> {
428428
unsafe {
429429
let mut sz: u32 = 0;
430+
#[expect(deprecated)]
430431
libc::_NSGetExecutablePath(ptr::null_mut(), &mut sz);
431432
if sz == 0 {
432433
return Err(io::Error::last_os_error());
433434
}
434435
let mut v: Vec<u8> = Vec::with_capacity(sz as usize);
436+
#[expect(deprecated)]
435437
let err = libc::_NSGetExecutablePath(v.as_mut_ptr() as *mut i8, &mut sz);
436438
if err != 0 {
437439
return Err(io::Error::last_os_error());

0 commit comments

Comments
 (0)