diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-10-04 08:32:11 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-10-04 08:32:11 +0000 |
commit | 92807b6db324019bc3908bb03cb16c8eaf92c5bd (patch) | |
tree | bd45af38b6c15892aa68d17a3f06fe7ab83e7375 /mg.c | |
parent | b0bf6df7dc9aca27060dd29d1bc1b84c28baf529 (diff) | |
download | perl-92807b6db324019bc3908bb03cb16c8eaf92c5bd.tar.gz |
Fix warnings about Sighandler_t type on Win32.
p4raw-id: //depot/perl@32020
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1346,7 +1346,11 @@ Perl_csighandler(int sig) (PL_signals & PERL_SIGNALS_UNSAFE_FLAG)) /* Call the perl level handler now-- * with risk we may be in malloc() etc. */ +#ifdef WIN32 + (*PL_sighandlerp)(sig); +#else (*PL_sighandlerp)(sig, NULL, NULL); +#endif else S_raise_signal(aTHX_ sig); #if defined(HAS_SIGACTION) && defined(SA_SIGINFO) @@ -1385,7 +1389,11 @@ Perl_despatch_signals(pTHX) PERL_BLOCKSIG_ADD(set, sig); PL_psig_pend[sig] = 0; PERL_BLOCKSIG_BLOCK(set); +#ifdef WIN32 + (*PL_sighandlerp)(sig); +#else (*PL_sighandlerp)(sig, NULL, NULL); +#endif PERL_BLOCKSIG_UNBLOCK(set); } } |