From f57b285c5e47c58f5a74e27f17ed110666ab7cd5 Mon Sep 17 00:00:00 2001
From: Yuki Okushi <huyuumi.dev@gmail.com>
Date: Sat, 17 Oct 2020 23:42:25 +0900
Subject: [PATCH] Skip `MINCORE_SUPER` on FreeBSD 13

---
 libc-test/build.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libc-test/build.rs b/libc-test/build.rs
index b9120809..65b049a9 100755
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -1843,6 +1843,11 @@ fn test_freebsd(target: &str) {
             // This was renamed in FreeBSD 12.2 and 13 (r350749).
             "IPPROTO_SEP" | "IPPROTO_DCCP" => true,
 
+            // This was changed to 96(0x60) in FreeBSD 13:
+            // https://github.com/freebsd/freebsd/
+            // commit/06b00ceaa914a3907e4e27bad924f44612bae1d7
+            "MINCORE_SUPER" if Some(13) == freebsd_ver => true,
+
             _ => false,
         }
     });
-- 
GitLab