summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-10-30 08:23:29 +0000
committerNicholas Clark <nick@ccl4.org>2005-10-30 08:23:29 +0000
commit9555a685dbd794b0e9f549335341b2a3b1ea3da5 (patch)
tree933cd09924b968254d8106493919ea79a1d15676 /perl.h
parente4dba78629baadf544a977b8105c4c2d93050b21 (diff)
downloadperl-9555a685dbd794b0e9f549335341b2a3b1ea3da5.tar.gz
Replace do_exec() with a macro to call do_exec3() with the extra two
0 arguments. Move the old body to mathoms.c p4raw-id: //depot/perl@25890
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index a74753902a..7512a7a73d 100644
--- a/perl.h
+++ b/perl.h
@@ -5390,8 +5390,15 @@ extern void moncontrol(int);
#pragma message disable (mainparm) /* Perl uses the envp in main(). */
#endif
+#if !defined(OS2) && !defined(WIN32) && !defined(DJGPP) && !defined(EPOC) && !defined(__SYMBIAN32__) && !defined(MACOS_TRADITIONAL)
+#define PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION
+#endif
+
#define do_open(g, n, l, a, rm, rp, sf) \
do_openn(g, n, l, a, rm, rp, sf, (SV **) NULL, 0)
+#ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION
+#define do_exec(cmd) do_exec3(cmd,0,0)
+#endif
/* and finally... */
#define PERL_PATCHLEVEL_H_IMPLICIT