u-hurd-gix-index-2
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Wed, 19 Jun 2024 05:48:44 +0000 (07:48 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 19 Jun 2024 05:51:49 +0000 (07:51 +0200)
===================================================================

Gbp-Pq: Topic vendor
Gbp-Pq: Name u-hurd-gix-index-2.patch

vendor/gix-index/src/fs.rs

index 493d4e11736fb85adfbaa845604d0aca2a24f6d9..cc89fd50512519151ff441787c2f7629eeeabb23 100644 (file)
@@ -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
     }