File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -3268,6 +3268,17 @@ fn test_linux(target: &str) {
3268
3268
| "RTNLGRP_STATS" // linux v5.18+
3269
3269
=> true ,
3270
3270
3271
+ // FIXME: The below is no longer const in glibc 2.34:
3272
+ // https://github.com/bminor/glibc/commit/5d98a7dae955bafa6740c26eaba9c86060ae0344
3273
+ | "PTHREAD_STACK_MIN"
3274
+ | "SIGSTKSZ"
3275
+ | "MINSIGSTKSZ"
3276
+ if gnu => true ,
3277
+
3278
+ // FIXME: Linux >= 5.16 changed its value:
3279
+ // https://github.com/torvalds/linux/commit/42df6e1d221dddc0f2acf2be37e68d553ad65f96
3280
+ "NF_NETDEV_NUMHOOKS" => true ,
3281
+
3271
3282
_ => false ,
3272
3283
}
3273
3284
} ) ;
@@ -3424,7 +3435,10 @@ fn test_linux(target: &str) {
3424
3435
// the `u` field is in fact an anonymous union
3425
3436
( gnu && struct_ == "ptrace_syscall_info" && ( field == "u" || field == "pad" ) ) ||
3426
3437
// the vregs field is a `__uint128_t` C's type.
3427
- ( struct_ == "user_fpsimd_struct" && field == "vregs" )
3438
+ ( struct_ == "user_fpsimd_struct" && field == "vregs" ) ||
3439
+ // Linux >= 5.11 tweaked the `svm_zero` field of the `sockaddr_vm` struct.
3440
+ // https://github.com/torvalds/linux/commit/dc8eeef73b63ed8988224ba6b5ed19a615163a7f
3441
+ ( struct_ == "sockaddr_vm" && field == "svm_zero" )
3428
3442
} ) ;
3429
3443
3430
3444
cfg. skip_roundtrip ( move |s| match s {
You can’t perform that action at this time.
0 commit comments