From 913fd44929d7a4a0fa5fe2131fb39676653717f9 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Wed, 19 Jun 2024 07:48:44 +0200 Subject: [PATCH] u-hurd-gix-index-2 =================================================================== Gbp-Pq: Topic vendor Gbp-Pq: Name u-hurd-gix-index-2.patch --- vendor/gix-index-0.33.0/src/fs.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vendor/gix-index-0.33.0/src/fs.rs b/vendor/gix-index-0.33.0/src/fs.rs index 5fb369f9ee..2feff9de4d 100644 --- a/vendor/gix-index-0.33.0/src/fs.rs +++ b/vendor/gix-index-0.33.0/src/fs.rs @@ -117,10 +117,14 @@ impl Metadata { /// Return the device id on which the file is located, or 0 on windows. pub fn dev(&self) -> u64 { - #[cfg(not(windows))] + #[cfg(all(not(windows), not(target_os = "hurd")))] { self.0.st_dev as u64 } + #[cfg(target_os = "hurd")] + { + self.0.st_fsid as u64 + } #[cfg(windows)] 0 } -- 2.30.2