Skip to content

Commit da8ab35

Browse files
committed
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 0e28c86 commit da8ab35

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
@@ -476,7 +476,7 @@ s! {
476476

477477
pub struct stat64 {
478478
pub st_fstype: ::c_int,
479-
pub st_fsid: __fsid_t,
479+
pub st_dev: __fsid_t, /* Actually st_fsid */
480480
pub st_ino: __ino64_t,
481481
pub st_gen: ::c_uint,
482482
pub st_rdev: __dev_t,

0 commit comments

Comments
 (0)