34484a
From 8e7c2faafb74d3b07e8a5818608dfe065e361604 Mon Sep 17 00:00:00 2001
34484a
From: "Craig A. Berry" <craigberry@mac.com>
34484a
Date: Mon, 1 Jan 2018 10:10:33 -0600
34484a
Subject: [PATCH] Reenable numeric first argument of system() on VMS.
34484a
MIME-Version: 1.0
34484a
Content-Type: text/plain; charset=UTF-8
34484a
Content-Transfer-Encoding: 8bit
34484a
34484a
This was broken in 64def2aeaeb63f92dadc6dfa334, and fixed for Win32
34484a
only in 8fe3452cc6ac7af8c08.  But VMS also uses a numeric first
34484a
argument to system() as a flag indicating spawn without waiting for
34484a
completion.
34484a
34484a
Signed-off-by: Petr Písař <ppisar@redhat.com>
34484a
---
34484a
 pp_sys.c | 2 +-
34484a
 1 file changed, 1 insertion(+), 1 deletion(-)
34484a
34484a
diff --git a/pp_sys.c b/pp_sys.c
34484a
index 0c9147bc4e..5154b9baa8 100644
34484a
--- a/pp_sys.c
34484a
+++ b/pp_sys.c
34484a
@@ -4375,7 +4375,7 @@ PP(pp_system)
34484a
 	STRLEN len;
34484a
 	char *pv;
34484a
 	SvGETMAGIC(origsv);
34484a
-#ifdef WIN32
34484a
+#if defined(WIN32) || defined(__VMS)
34484a
 	/*
34484a
 	 * Because of a nasty platform-specific variation on the meaning
34484a
 	 * of arguments to this op, we must preserve numeric arguments
34484a
-- 
34484a
2.13.6
34484a