diff options
Diffstat (limited to 'debian/patches/vendor/u-hurd-gix-index-2.patch')
-rw-r--r-- | debian/patches/vendor/u-hurd-gix-index-2.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/vendor/u-hurd-gix-index-2.patch b/debian/patches/vendor/u-hurd-gix-index-2.patch new file mode 100644 index 000000000..d902b4851 --- /dev/null +++ b/debian/patches/vendor/u-hurd-gix-index-2.patch @@ -0,0 +1,29 @@ +From: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> +Date: Wed, 19 Jun 2024 07:48:44 +0200 +Subject: u-hurd-gix-index-2 + +=================================================================== +--- + vendor/gix-index/src/fs.rs | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/vendor/gix-index/src/fs.rs b/vendor/gix-index/src/fs.rs +index 493d4e1..cc89fd5 100644 +--- a/vendor/gix-index/src/fs.rs ++++ b/vendor/gix-index/src/fs.rs +@@ -115,10 +115,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(host_os = "hurd")))] + { + self.0.st_dev as u64 + } ++ #[cfg(host_os = "hurd")] ++ { ++ self.0.st_fsid as u64 ++ } + #[cfg(windows)] + 0 + } |