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, 4 Sep 2024 18:13:19 +0000 (20:13 +0200)
===================================================================

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

vendor/gix-index-0.33.0/src/fs.rs

index 5fb369f9eef497ebb790f509ef5645568999fe22..2feff9de4d68c049831f6cec12116df0f38f84d1 100644 (file)
@@ -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
     }