Skip to content

Commit 405afb2

Browse files
committed
Ignore deprecated header file in gnu
1 parent fd64909 commit 405afb2

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
@@ -2185,8 +2185,8 @@ fn test_linux(target: &str) {
21852185
// `sys/reg.h` is only available on x86 and x86_64
21862186
[x86_64 || x86_32]: "sys/reg.h",
21872187
// sysctl system call is deprecated and not available on musl
2188-
// It is also unsupported in x32:
2189-
[!(x32 || musl)]: "sys/sysctl.h",
2188+
// It is also unsupported in x32, deprecated since glibc 2.30:
2189+
[!(x32 || musl || gnu)]: "sys/sysctl.h",
21902190
// <execinfo.h> is not supported by musl:
21912191
// https://www.openwall.com/lists/musl/2015/04/09/3
21922192
[!musl]: "execinfo.h",
@@ -2425,6 +2425,9 @@ fn test_linux(target: &str) {
24252425
// which use Debian 10.0 is too old.
24262426
"statx" if sparc64 => true,
24272427

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

0 commit comments

Comments
 (0)