Skip to content

Commit 6c8a63a

Browse files
committed
keep openbsd name for dirent field member
1 parent 6b84742 commit 6c8a63a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

libc-test/build.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ fn main() {
213213
let target2 = target.clone();
214214
cfg.field_name(move |struct_, field| {
215215
match field {
216-
"d_namelen" if openbsd && struct_ == "dirent" => "d_namlen".to_string(),
217-
"st_birthtime" if openbsd && struct_ == "stat" => "__st_birthtime".to_string(),
216+
"st_birthtime" if openbsd && struct_ == "stat" => "__st_birthtime".to_string(),
218217
"st_birthtime_nsec" if openbsd && struct_ == "stat" => "__st_birthtimensec".to_string(),
219218
// Our stat *_nsec fields normally don't actually exist but are part
220219
// of a timeval struct

src/unix/bsd/openbsdlike/openbsd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ s! {
1717
pub d_off: ::off_t,
1818
pub d_reclen: u16,
1919
pub d_type: u8,
20-
pub d_namelen: u8,
20+
pub d_namlen: u8,
2121
__d_padding: [u8; 4],
2222
pub d_name: [::c_char; 256],
2323
}

0 commit comments

Comments
 (0)