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