diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2002-07-16 02:57:47 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2002-07-16 02:57:47 +0000 |
commit | 54725af65d49b2ed8413041530c71b8d3bde0714 (patch) | |
tree | 238d29129bd88937476c8d62139e978b5c26b506 /pp_sys.c | |
parent | a10b1e109d1f901ff6cb267ca6a30834468b37b7 (diff) | |
download | perl-54725af65d49b2ed8413041530c71b8d3bde0714.tar.gz |
integrate a variant of change#17568 from maint-5.6 branch (the
do_exec parts elided so that change is restricted strictly to
windows; binary compatibility stubs not needed)
p4raw-link: @17568 on //depot/maint-5.6/perl: 07691bcd6c6d7fd92f508fd5268e700370ea47c2
p4raw-id: //depot/perl@17570
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -4154,10 +4154,19 @@ PP(pp_system) result = 0; if (PL_op->op_flags & OPf_STACKED) { SV *really = *++MARK; +# ifdef WIN32 + value = (I32)do_aspawn(really, MARK, SP); +# else value = (I32)do_aspawn(really, (void **)MARK, (void **)SP); +# endif } - else if (SP - MARK != 1) + else if (SP - MARK != 1) { +# ifdef WIN32 + value = (I32)do_aspawn(Nullsv, MARK, SP); +# else value = (I32)do_aspawn(Nullsv, (void **)MARK, (void **)SP); +# endif + } else { value = (I32)do_spawn(SvPVx(sv_mortalcopy(*SP), n_a)); } |