File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -490,11 +490,13 @@ pub enum SigevNotify {
490
490
491
491
/// Used to request asynchronous notification of the completion of certain
492
492
/// events, such as POSIX AIO and timers.
493
+ #[ cfg( not( target_os = "openbsd" ) ) ]
493
494
#[ repr( C ) ]
494
495
pub struct SigEvent {
495
496
sigevent : libc:: sigevent
496
497
}
497
498
499
+ #[ cfg( not( target_os = "openbsd" ) ) ]
498
500
impl SigEvent {
499
501
// Note: this constructor does not allow the user to set the
500
502
// sigev_notify_kevent_flags field. That's considered ok because on FreeBSD
@@ -559,6 +561,7 @@ impl SigEvent {
559
561
}
560
562
}
561
563
564
+ #[ cfg( not( target_os = "openbsd" ) ) ]
562
565
impl Debug for SigEvent {
563
566
#[ cfg( any( target_os = "linux" , target_os = "freebsd" ) ) ]
564
567
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
@@ -581,6 +584,7 @@ impl Debug for SigEvent {
581
584
}
582
585
}
583
586
587
+ #[ cfg( not( target_os = "openbsd" ) ) ]
584
588
impl < ' a > From < & ' a libc:: sigevent > for SigEvent {
585
589
fn from ( sigevent : & libc:: sigevent ) -> Self {
586
590
SigEvent { sigevent : sigevent. clone ( ) }
You can’t perform that action at this time.
0 commit comments