keep openbsd name for dirent field member
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 893c5e8..9959821 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -213,8 +213,7 @@
     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 ac11164..fddde45 100644
--- a/src/unix/bsd/openbsdlike/openbsd.rs
+++ b/src/unix/bsd/openbsdlike/openbsd.rs
@@ -17,7 +17,7 @@
         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],
     }