Skip to content

Commit

Permalink
WCOREDUMP is in <sys/wait.h>
Browse files Browse the repository at this point in the history
Without this, $? & 128 doesn't get set properly on some (glibc) systems
when dumping core.
  • Loading branch information
ntyni authored and rgs committed Dec 21, 2008
1 parent 640238c commit de8ca8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions perl.h
Expand Up @@ -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
Expand Down

0 comments on commit de8ca8a

Please sign in to comment.