Skip to content

Commit

Permalink
keep openbsd name for dirent field member
Browse files Browse the repository at this point in the history
  • Loading branch information
semarie committed Dec 23, 2015
1 parent 6b84742 commit 6c8a63a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ fn main() {
let target2 = target.clone();
cfg.field_name(move |struct_, field| {
match field {
"d_namelen" if openbsd && struct_ == "dirent" => "d_namlen".to_string(),
"st_birthtime" if openbsd && struct_ == "stat" => "__st_birthtime".to_string(),
"st_birthtime" if openbsd && struct_ == "stat" => "__st_birthtime".to_string(),
"st_birthtime_nsec" if openbsd && struct_ == "stat" => "__st_birthtimensec".to_string(),
// Our stat *_nsec fields normally don't actually exist but are part
// of a timeval struct
Expand Down
2 changes: 1 addition & 1 deletion src/unix/bsd/openbsdlike/openbsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ s! {
pub d_off: ::off_t,
pub d_reclen: u16,
pub d_type: u8,
pub d_namelen: u8,
pub d_namlen: u8,
__d_padding: [u8; 4],
pub d_name: [::c_char; 256],
}
Expand Down

0 comments on commit 6c8a63a

Please sign in to comment.