summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@debian.org>2008-12-17 22:02:51 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-12-21 09:59:58 +0100
commitde8ca8af19546d4922bab4537a72c9b2b3354009 (patch)
treed327613d6c23caa25100151b5fa44973a4177f06
parent640238c5b29c59bf811361d5e88cd334fb2e4cb9 (diff)
downloadperl-de8ca8af19546d4922bab4537a72c9b2b3354009.tar.gz
WCOREDUMP is in <sys/wait.h>
Without this, $? & 128 doesn't get set properly on some (glibc) systems when dumping core.
-rw-r--r--perl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 7d22338616..c6008bb587 100644
--- a/perl.h
+++ b/perl.h
@@ -677,6 +677,11 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
# include <unistd.h>
#endif
+/* for WCOREDUMP */
+#ifdef I_SYS_WAIT
+# include <sys/wait.h>
+#endif
+
#ifdef __SYMBIAN32__
# undef _SC_ARG_MAX /* Symbian has _SC_ARG_MAX but no sysconf() */
#endif