summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2014-12-20 13:02:23 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2014-12-24 13:20:05 +0000
commit1271a1bef9e811fe58a09dbdc00ddfdf292f686b (patch)
tree7f5136d34d2748cba39e5c8017688c593ef9efdc /mg.c
parentcfd916dd0186076c8aa8e70771a9fb4b37d0dd70 (diff)
downloadperl-1271a1bef9e811fe58a09dbdc00ddfdf292f686b.tar.gz
Fix compilation errors in mg.c with MinGW/gcc -xc++
error: 'sip' was not declared in this scope error: 'uap' was not declared in this scope
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index 77dd9c0b6f..4e6dcaff32 100644
--- a/mg.c
+++ b/mg.c
@@ -1389,12 +1389,14 @@ Perl_csighandler(int sig)
#else
dTHX;
#endif
+#if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
#if defined(__cplusplus) && defined(__GNUC__)
/* g++ doesn't support PERL_UNUSED_DECL, so the sip and uap
* parameters would be warned about. */
PERL_UNUSED_ARG(sip);
PERL_UNUSED_ARG(uap);
#endif
+#endif
#ifdef FAKE_PERSISTENT_SIGNAL_HANDLERS
(void) rsignal(sig, PL_csighandlerp);
if (PL_sig_ignoring[sig]) return;