Skip to content

Commit ba681b3

Browse files
committed
Add missing d_type member in dirent struct
1 parent c3dab47 commit ba681b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vxworks/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ s_no_extra_traits! {
418418
pub struct dirent {
419419
pub d_ino: crate::ino_t,
420420
pub d_name: [c_char; _PARM_NAME_MAX as usize + 1],
421+
pub d_type: c_uchar,
421422
}
422423

423424
pub struct sockaddr_un {
@@ -466,6 +467,7 @@ cfg_if! {
466467
f.debug_struct("dirent")
467468
.field("d_ino", &self.d_ino)
468469
.field("d_name", &&self.d_name[..])
470+
.field("d_type", &self.d_type)
469471
.finish()
470472
}
471473
}

0 commit comments

Comments
 (0)