diff --git a/libc-test/build.rs b/libc-test/build.rs index 893c5e88..9959821a 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -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 diff --git a/src/unix/bsd/openbsdlike/openbsd.rs b/src/unix/bsd/openbsdlike/openbsd.rs index ac111641..fddde450 100644 --- a/src/unix/bsd/openbsdlike/openbsd.rs +++ b/src/unix/bsd/openbsdlike/openbsd.rs @@ -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], }