File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1487,6 +1487,7 @@ fn test_android(target: &str) {
1487
1487
"linux/seccomp.h" ,
1488
1488
"linux/sched.h" ,
1489
1489
"linux/sockios.h" ,
1490
+ "linux/wait.h" ,
1490
1491
1491
1492
}
1492
1493
@@ -1557,6 +1558,9 @@ fn test_android(target: &str) {
1557
1558
// FIXME: deprecated - removed in glibc 2.26
1558
1559
"SIGUNUSED" => true ,
1559
1560
1561
+ // Needs a newer Android SDK for the definition
1562
+ "P_PIDFD" => true ,
1563
+
1560
1564
_ => false ,
1561
1565
}
1562
1566
} ) ;
@@ -2443,6 +2447,7 @@ fn test_linux(target: &str) {
2443
2447
"linux/seccomp.h" ,
2444
2448
"linux/sockios.h" ,
2445
2449
"linux/vm_sockets.h" ,
2450
+ "linux/wait.h" ,
2446
2451
"sys/auxv.h" ,
2447
2452
"sys/fanotify.h" ,
2448
2453
}
@@ -2627,6 +2632,10 @@ fn test_linux(target: &str) {
2627
2632
// Require Linux kernel 5.6:
2628
2633
"VMADDR_CID_LOCAL" => true ,
2629
2634
2635
+ // Defined in kernel headers but musl removes it; need musl 1.2 for definition in musl
2636
+ // headers.
2637
+ "P_PIDFD" => true ,
2638
+
2630
2639
_ => false ,
2631
2640
}
2632
2641
} ) ;
Original file line number Diff line number Diff line change @@ -1041,6 +1041,11 @@ pub const SIGEV_THREAD: ::c_int = 2;
1041
1041
pub const P_ALL : idtype_t = 0 ;
1042
1042
pub const P_PID : idtype_t = 1 ;
1043
1043
pub const P_PGID : idtype_t = 2 ;
1044
+ cfg_if ! {
1045
+ if #[ cfg( not( target_os = "emscripten" ) ) ] {
1046
+ pub const P_PIDFD : idtype_t = 3 ;
1047
+ }
1048
+ }
1044
1049
1045
1050
pub const UTIME_OMIT : c_long = 1073741822 ;
1046
1051
pub const UTIME_NOW : c_long = 1073741823 ;
You can’t perform that action at this time.
0 commit comments