summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-04-23 15:09:47 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-04-23 15:09:47 (GMT)
commit7fc99c94d4af79083160dea4eebba7c471954110 (patch)
tree45d2dce55e3f3e44cdea05c73624389907c4bb02 /Source/kwsys
parentd847ca8e270685826222b4ab106a380f9a5e7db0 (diff)
downloadCMake-7fc99c94d4af79083160dea4eebba7c471954110.zip
CMake-7fc99c94d4af79083160dea4eebba7c471954110.tar.gz
CMake-7fc99c94d4af79083160dea4eebba7c471954110.tar.bz2
ENH: check in almost building VMS stuff with VMSBuild directory since the bootstrap script will not work on VMS
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/ProcessUNIX.c3
-rw-r--r--Source/kwsys/System.h.in9
-rw-r--r--Source/kwsys/SystemTools.cxx4
-rw-r--r--Source/kwsys/kwsysPrivate.h8
4 files changed, 21 insertions, 3 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c
index 9cd8d7e..a7515ba 100644
--- a/Source/kwsys/ProcessUNIX.c
+++ b/Source/kwsys/ProcessUNIX.c
@@ -2270,6 +2270,9 @@ static pid_t kwsysProcessFork(kwsysProcess* cp,
if(cp->OptionDetach)
{
/* Create an intermediate process. */
+#ifdef __VMS
+#define fork vfork
+#endif
pid_t middle_pid = fork();
if(middle_pid < 0)
{
diff --git a/Source/kwsys/System.h.in b/Source/kwsys/System.h.in
index 0c86acc..f96c74e 100644
--- a/Source/kwsys/System.h.in
+++ b/Source/kwsys/System.h.in
@@ -39,6 +39,15 @@
# define kwsysSystem_Shell_Flag_AllowMakeVariables kwsys_ns(System_Shell_Flag_AllowMakeVariables)
#endif
+#ifdef __VMS
+#define @KWSYS_NAMESPACE@System_Shell_GetArgumentForUnix \
+ @KWSYS_NAMESPACE@System_Shell_UnixGA
+#define @KWSYS_NAMESPACE@System_Shell_GetArgumentSizeForUnix \
+ @KWSYS_NAMESPACE@System_Shell_UnixGAS
+#define @KWSYS_NAMESPACE@System_Shell_GetArgumentForWindows \
+ @KWSYS_NAMESPACE@System_Shell_WindowsGA
+#endif
+
#if defined(__cplusplus)
extern "C"
{
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 928dc37..a6512db 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -53,12 +53,14 @@
#ifndef _WIN32
#include <utime.h>
#include <limits.h>
-#include <sys/param.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <pwd.h>
+#ifndef __VMS
+#include <sys/param.h>
#include <termios.h>
+#endif
#include <signal.h> /* sigprocmask */
#endif
diff --git a/Source/kwsys/kwsysPrivate.h b/Source/kwsys/kwsysPrivate.h
index afccd4e..dd3b75f 100644
--- a/Source/kwsys/kwsysPrivate.h
+++ b/Source/kwsys/kwsysPrivate.h
@@ -12,7 +12,9 @@
=========================================================================*/
#ifndef KWSYS_NAMESPACE
-# error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
+# ifndef __VMS
+# error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
+# endif
#endif
#ifndef _kwsysPrivate_h
@@ -39,5 +41,7 @@
#define KWSYS_NAMESPACE_STRING1(x) #x
#else
-# error "kwsysPrivate.h included multiple times."
+# ifndef __VMS
+# error "kwsysPrivate.h included multiple times."
+# endif
#endif