Skip to content

Commit 043043f

Browse files
sthibaultgross35
authored andcommitted
hurd: Fix st_dev name
Currently struct stat and struct stat64 are not coherent: struct stat is using st_dev, and struct stat64 is using st_fsid. st_dev is the more commonly-known name, already used by e.g. ~45 rust software in Debian, so better fix st_fsid into st_dev, rather than having to uselessly spend time hand-patching all these software.
1 parent f68f68c commit 043043f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/hurd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ s! {
481481

482482
pub struct stat64 {
483483
pub st_fstype: ::c_int,
484-
pub st_fsid: __fsid_t,
484+
pub st_dev: __fsid_t, /* Actually st_fsid */
485485
pub st_ino: __ino64_t,
486486
pub st_gen: ::c_uint,
487487
pub st_rdev: __dev_t,

0 commit comments

Comments
 (0)