Skip to content

Commit 5875016

Browse files
hax0kartiktgross35
authored andcommitted
Add missing d_type member in dirent struct
(backport <#4352>) (cherry picked from commit ba681b3)
1 parent 02741e0 commit 5875016

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vxworks/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ s_no_extra_traits! {
410410
pub struct dirent {
411411
pub d_ino: crate::ino_t,
412412
pub d_name: [c_char; _PARM_NAME_MAX as usize + 1],
413+
pub d_type: c_uchar,
413414
}
414415

415416
pub struct sockaddr_un {
@@ -458,6 +459,7 @@ cfg_if! {
458459
f.debug_struct("dirent")
459460
.field("d_ino", &self.d_ino)
460461
.field("d_name", &&self.d_name[..])
462+
.field("d_type", &self.d_type)
461463
.finish()
462464
}
463465
}

0 commit comments

Comments
 (0)