File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -465,8 +465,12 @@ impl SigEvent {
465
465
SigevNotify :: SigevSignal { ..} => libc:: SIGEV_SIGNAL ,
466
466
#[ cfg( any( target_os = "dragonfly" , target_os = "freebsd" ) ) ]
467
467
SigevNotify :: SigevKevent { ..} => libc:: SIGEV_KEVENT ,
468
- #[ cfg( any( target_os = "linux" , target_os = "freebsd" ) ) ]
469
- SigevNotify :: SigevThreadId { ..} => libc:: SIGEV_THREAD_ID
468
+ #[ cfg( target_os = "freebsd" ) ]
469
+ SigevNotify :: SigevThreadId { ..} => libc:: SIGEV_THREAD_ID ,
470
+ #[ cfg( all( target_os = "linux" , target_env = "gnu" ) ) ]
471
+ SigevNotify :: SigevThreadId { ..} => libc:: SIGEV_THREAD_ID ,
472
+ #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
473
+ SigevNotify :: SigevThreadId { ..} => 4 // No SIGEV_THREAD_ID defined
470
474
} ;
471
475
sev. sigev_signo = match sigev_notify {
472
476
SigevNotify :: SigevSignal { signal, .. } => signal as :: c_int ,
You can’t perform that action at this time.
0 commit comments