@@ -138,7 +138,6 @@ fn extend_module_platform_specific(vm: &VirtualMachine, module: PyObjectRef) ->
138138 "SIGUSR2" => ctx. new_int( libc:: SIGUSR2 as u8 ) ,
139139 "SIGPIPE" => ctx. new_int( libc:: SIGPIPE as u8 ) ,
140140 "SIGALRM" => ctx. new_int( libc:: SIGALRM as u8 ) ,
141- "SIGSTKFLT" => ctx. new_int( libc:: SIGSTKFLT as u8 ) ,
142141 "SIGCHLD" => ctx. new_int( libc:: SIGCHLD as u8 ) ,
143142 "SIGCONT" => ctx. new_int( libc:: SIGCONT as u8 ) ,
144143 "SIGSTOP" => ctx. new_int( libc:: SIGSTOP as u8 ) ,
@@ -152,10 +151,17 @@ fn extend_module_platform_specific(vm: &VirtualMachine, module: PyObjectRef) ->
152151 "SIGPROF" => ctx. new_int( libc:: SIGPROF as u8 ) ,
153152 "SIGWINCH" => ctx. new_int( libc:: SIGWINCH as u8 ) ,
154153 "SIGIO" => ctx. new_int( libc:: SIGIO as u8 ) ,
155- "SIGPWR" => ctx. new_int( libc:: SIGPWR as u8 ) ,
156154 "SIGSYS" => ctx. new_int( libc:: SIGSYS as u8 ) ,
157155 } ) ;
158156
157+ #[ cfg( not( target_os = "macos" ) ) ]
158+ {
159+ extend_module ! ( vm, module, {
160+ "SIGPWR" => ctx. new_int( libc:: SIGPWR as u8 ) ,
161+ "SIGSTKFLT" => ctx. new_int( libc:: SIGSTKFLT as u8 ) ,
162+ } ) ;
163+ }
164+
159165 module
160166}
161167
0 commit comments