diff options
author | Niko Tyni <ntyni@debian.org> | 2008-12-17 22:02:51 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-12-21 09:59:58 +0100 |
commit | de8ca8af19546d4922bab4537a72c9b2b3354009 (patch) | |
tree | d327613d6c23caa25100151b5fa44973a4177f06 /perl.h | |
parent | 640238c5b29c59bf811361d5e88cd334fb2e4cb9 (diff) | |
download | perl-de8ca8af19546d4922bab4537a72c9b2b3354009.tar.gz |
WCOREDUMP is in <sys/wait.h>
Without this, $? & 128 doesn't get set properly on some (glibc) systems
when dumping core.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |