1212#![ allow( irrefutable_let_patterns) ]
1313
1414/// Enable the waiting reaper.
15- #[ cfg( any( windows, target_os = "linux" ) ) ]
15+ #[ cfg( any( windows, target_os = "linux" , target_os = "freebsd" ) ) ]
1616macro_rules! cfg_wait {
1717 ( $( $tt: tt) * ) => { $( $tt) * } ;
1818}
1919
2020/// Enable the waiting reaper.
21- #[ cfg( not( any( windows, target_os = "linux" ) ) ) ]
21+ #[ cfg( not( any( windows, target_os = "linux" , target_os = "freebsd" ) ) ) ]
2222macro_rules! cfg_wait {
2323 ( $( $tt: tt) * ) => { } ;
2424}
@@ -48,7 +48,7 @@ use std::sync::Mutex;
4848
4949/// The underlying system reaper.
5050pub ( crate ) enum Reaper {
51- #[ cfg( any( windows, target_os = "linux" ) ) ]
51+ #[ cfg( any( windows, target_os = "linux" , target_os = "freebsd" ) ) ]
5252 /// The reaper based on the wait backend.
5353 Wait ( wait:: Reaper ) ,
5454
@@ -59,7 +59,7 @@ pub(crate) enum Reaper {
5959
6060/// The wrapper around a child.
6161pub ( crate ) enum ChildGuard {
62- #[ cfg( any( windows, target_os = "linux" ) ) ]
62+ #[ cfg( any( windows, target_os = "linux" , target_os = "freebsd" ) ) ]
6363 /// The child guard based on the wait backend.
6464 Wait ( wait:: ChildGuard ) ,
6565
@@ -70,7 +70,7 @@ pub(crate) enum ChildGuard {
7070
7171/// A lock on the reaper.
7272pub ( crate ) enum Lock {
73- #[ cfg( any( windows, target_os = "linux" ) ) ]
73+ #[ cfg( any( windows, target_os = "linux" , target_os = "freebsd" ) ) ]
7474 /// The wait-based reaper needs no lock.
7575 Wait ,
7676
0 commit comments