File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2185,8 +2185,8 @@ fn test_linux(target: &str) {
2185
2185
// `sys/reg.h` is only available on x86 and x86_64
2186
2186
[ x86_64 || x86_32] : "sys/reg.h" ,
2187
2187
// 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" ,
2190
2190
// <execinfo.h> is not supported by musl:
2191
2191
// https://www.openwall.com/lists/musl/2015/04/09/3
2192
2192
[ !musl] : "execinfo.h" ,
@@ -2425,6 +2425,9 @@ fn test_linux(target: &str) {
2425
2425
// which use Debian 10.0 is too old.
2426
2426
"statx" if sparc64 => true ,
2427
2427
2428
+ // FIXME: Deprecated since glibc 2.30. Remove fn once upstream does.
2429
+ "sysctl" if gnu => true ,
2430
+
2428
2431
_ => false ,
2429
2432
}
2430
2433
} ) ;
You can’t perform that action at this time.
0 commit comments