@@ -28,7 +28,7 @@ pub enum Signal {
28
28
SIGPIPE = libc:: SIGPIPE ,
29
29
SIGALRM = libc:: SIGALRM ,
30
30
SIGTERM = libc:: SIGTERM ,
31
- #[ cfg( not ( target_os = "macos " ) ) ]
31
+ #[ cfg( any ( target_os = "linux" , target_os = "android" , target_os = "emscripten ") ) ]
32
32
SIGSTKFLT = libc:: SIGSTKFLT ,
33
33
SIGCHLD = libc:: SIGCHLD ,
34
34
SIGCONT = libc:: SIGCONT ,
@@ -43,18 +43,18 @@ pub enum Signal {
43
43
SIGPROF = libc:: SIGPROF ,
44
44
SIGWINCH = libc:: SIGWINCH ,
45
45
SIGIO = libc:: SIGIO ,
46
- #[ cfg( not ( target_os = "macos " ) ) ]
46
+ #[ cfg( any ( target_os = "linux" , target_os = "android" , target_os = "emscripten ") ) ]
47
47
SIGPWR = libc:: SIGPWR ,
48
48
SIGSYS = libc:: SIGSYS ,
49
- #[ cfg( target_os = "macos" ) ]
49
+ #[ cfg( not ( any ( target_os = "linux" , target_os = "android" , target_os = "emscripten" ) ) ) ]
50
50
SIGEMT = libc:: SIGEMT ,
51
- #[ cfg( target_os = "macos" ) ]
51
+ #[ cfg( not ( any ( target_os = "linux" , target_os = "android" , target_os = "emscripten" ) ) ) ]
52
52
SIGINFO = libc:: SIGINFO ,
53
53
}
54
54
55
55
pub use self :: Signal :: * ;
56
56
57
- #[ cfg( not ( target_os = "macos " ) ) ]
57
+ #[ cfg( any ( target_os = "linux" , target_os = "android" , target_os = "emscripten ") ) ]
58
58
const SIGNALS : [ Signal ; 31 ] = [
59
59
SIGHUP ,
60
60
SIGINT ,
@@ -87,7 +87,7 @@ const SIGNALS: [Signal; 31] = [
87
87
SIGIO ,
88
88
SIGPWR ,
89
89
SIGSYS ] ;
90
- #[ cfg( target_os = "macos" ) ]
90
+ #[ cfg( not ( any ( target_os = "linux" , target_os = "android" , target_os = "emscripten" ) ) ) ]
91
91
const SIGNALS : [ Signal ; 31 ] = [
92
92
SIGHUP ,
93
93
SIGINT ,
0 commit comments