Skip to content

Commit f77dcc4

Browse files
committed
Ignore deprecated header file in gnu
1 parent d9f264b commit f77dcc4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libc-test/build.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,8 +2186,8 @@ fn test_linux(target: &str) {
21862186
// `sys/reg.h` is only available on x86 and x86_64
21872187
[x86_64 || x86_32]: "sys/reg.h",
21882188
// sysctl system call is deprecated and not available on musl
2189-
// It is also unsupported in x32:
2190-
[!(x32 || musl)]: "sys/sysctl.h",
2189+
// It is also unsupported in x32, deprecated since glibc 2.30:
2190+
[!(x32 || musl || gnu)]: "sys/sysctl.h",
21912191
// <execinfo.h> is not supported by musl:
21922192
// https://www.openwall.com/lists/musl/2015/04/09/3
21932193
[!musl]: "execinfo.h",
@@ -2426,6 +2426,9 @@ fn test_linux(target: &str) {
24262426
// which use Debian 10.0 is too old.
24272427
"statx" if sparc64 => true,
24282428

2429+
// FIXME: Deprecated since glibc 2.30. Remove fn once upstream does.
2430+
"sysctl" if gnu => true,
2431+
24292432
_ => false,
24302433
}
24312434
});

0 commit comments

Comments
 (0)