diff --git a/libc-test/build.rs b/libc-test/build.rs
index 99c67f38b4b03bc182b072e0cf40eeb2eada4fa3..7606800afb9cd56b70d8d0f672cc3e0558255677 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -857,6 +857,10 @@ fn main() {
             // to be removed now
             "system" | "ptrace" if ios => true,
 
+            // Removed in OpenBSD 6.5
+            // https://marc.info/?l=openbsd-cvs&m=154723400730318
+            "mincore" if openbsd => true,
+
             _ => false,
         }
     });