Ignore deprecated header file in gnu

This commit is contained in:
Yuki Okushi 2020-02-24 05:27:05 +09:00
parent d9f264ba73
commit f77dcc4811
1 changed files with 5 additions and 2 deletions

View File

@ -2186,8 +2186,8 @@ fn test_linux(target: &str) {
// `sys/reg.h` is only available on x86 and x86_64
[x86_64 || x86_32]: "sys/reg.h",
// sysctl system call is deprecated and not available on musl
// It is also unsupported in x32:
[!(x32 || musl)]: "sys/sysctl.h",
// It is also unsupported in x32, deprecated since glibc 2.30:
[!(x32 || musl || gnu)]: "sys/sysctl.h",
// <execinfo.h> is not supported by musl:
// https://www.openwall.com/lists/musl/2015/04/09/3
[!musl]: "execinfo.h",
@ -2426,6 +2426,9 @@ fn test_linux(target: &str) {
// which use Debian 10.0 is too old.
"statx" if sparc64 => true,
// FIXME: Deprecated since glibc 2.30. Remove fn once upstream does.
"sysctl" if gnu => true,
_ => false,
}
});