summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2012-05-24 17:13:13 -0500
committerCraig A. Berry <craigberry@mac.com>2012-05-24 17:13:13 -0500
commit25bbd8263003a49c3f7afdc1cd082f6f66e76ce4 (patch)
treec8bd69cd71d0f5095fc9e90ce045107b75df879b /doio.c
parent929df5ffc08c253ffd629a57e960a554868f4551 (diff)
downloadperl-25bbd8263003a49c3f7afdc1cd082f6f66e76ce4.tar.gz
File scope for VMS-specific #includes.
C++ requires #include directives to be at file scope, but we've been lazy and haven't been doing that.
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index c2b110202b..a430361eaf 100644
--- a/doio.c
+++ b/doio.c
@@ -1562,6 +1562,10 @@ Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report)
#endif /* OS2 || WIN32 */
+#ifdef VMS
+#include <starlet.h> /* for sys$delprc */
+#endif
+
I32
Perl_apply(pTHX_ I32 type, register SV **mark, register SV **sp)
{
@@ -1698,7 +1702,6 @@ nothing in the core.
/* kill() doesn't do process groups (job trees?) under VMS */
if (val < 0) val = -val;
if (val == SIGKILL) {
-# include <starlet.h>
/* Use native sys$delprc() to insure that target process is
* deleted; supervisor-mode images don't pay attention to
* CRTL's emulation of Unix-style signals and kill()