File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -373,8 +373,9 @@ fn main() {
373
373
// Fixup a few types on windows that don't actually exist.
374
374
"time64_t" if windows => "__time64_t" . to_string ( ) ,
375
375
"ssize_t" if windows => "SSIZE_T" . to_string ( ) ,
376
- "_crt_signal_t" if windows => "__p_sig_fn_t" . to_string ( ) ,
377
-
376
+ // windows
377
+ "sighandler_t" if windows && !mingw => "_crt_signal_t" . to_string ( ) ,
378
+ "sighandler_t" if windows && mingw => "__p_sig_fn_t" . to_string ( ) ,
378
379
// OSX calls this something else
379
380
"sighandler_t" if bsdlike => "sig_t" . to_string ( ) ,
380
381
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub type ptrdiff_t = isize;
27
27
pub type intptr_t = isize ;
28
28
pub type uintptr_t = usize ;
29
29
pub type ssize_t = isize ;
30
- pub type __p_sig_fn_t = usize ;
30
+ pub type sighandler_t = usize ;
31
31
32
32
pub type c_char = i8 ;
33
33
pub type c_long = i32 ;
@@ -298,7 +298,7 @@ extern {
298
298
pub fn rand ( ) -> c_int ;
299
299
pub fn srand ( seed : c_uint ) ;
300
300
301
- pub fn signal ( signum : c_int , handler : __p_sig_fn_t ) -> __p_sig_fn_t ;
301
+ pub fn signal ( signum : c_int , handler : sighandler_t ) -> sighandler_t ;
302
302
pub fn raise ( signum : c_int ) -> c_int ;
303
303
304
304
#[ link_name = "_chmod" ]
You can’t perform that action at this time.
0 commit comments