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