summaryrefslogtreecommitdiffstats
path: root/debian/patches/vendor/u-hurd-gix-index-2.patch
blob: d902b48517f0f594874420bcd6724eb11d599480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
     }