[Cmake-commits] [cmake-commits] king committed ProcessUNIX.c 1.85 1.86
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Jun 12 15:44:52 EDT 2009
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv2208/Source/kwsys
Modified Files:
ProcessUNIX.c
Log Message:
COMP: Do not compile VMS-specific code on non-VMS
This helps avoid fixing VMS-specific code for non-VMS compilers where it
isn't needed anyway.
Index: ProcessUNIX.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/ProcessUNIX.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -C 2 -d -r1.85 -r1.86
*** ProcessUNIX.c 12 Jun 2009 17:33:35 -0000 1.85
--- ProcessUNIX.c 12 Jun 2009 19:44:50 -0000 1.86
***************
*** 177,181 ****
--- 177,183 ----
kwsysProcessCreateInformation* si);
static void kwsysProcessKill(pid_t process_id);
+ #if defined(__VMS)
static int kwsysProcessSetVMSFeature(const char* name, int value);
+ #endif
static int kwsysProcessesAdd(kwsysProcess* cp);
static void kwsysProcessesRemove(kwsysProcess* cp);
***************
*** 728,731 ****
--- 730,734 ----
}
+ #if defined(__VMS)
/* Make sure pipes behave like streams on VMS. */
if(!kwsysProcessSetVMSFeature("DECC$STREAM_PIPE", 1))
***************
*** 734,737 ****
--- 737,741 ----
return;
}
+ #endif
/* Save the real working directory of this process and change to
***************
*** 2310,2313 ****
--- 2314,2318 ----
/*--------------------------------------------------------------------------*/
+ #if !defined(__VMS)
static pid_t kwsysProcessFork(kwsysProcess* cp,
kwsysProcessCreateInformation* si)
***************
*** 2364,2367 ****
--- 2369,2373 ----
}
}
+ #endif
/*--------------------------------------------------------------------------*/
***************
*** 2486,2490 ****
/*--------------------------------------------------------------------------*/
#if defined(__VMS)
! int decc$feature_get_index(char *name);
int decc$feature_set_value(int index, int mode, int value);
static int kwsysProcessSetVMSFeature(const char* name, int value)
--- 2492,2496 ----
/*--------------------------------------------------------------------------*/
#if defined(__VMS)
! int decc$feature_get_index(const char* name);
int decc$feature_set_value(int index, int mode, int value);
static int kwsysProcessSetVMSFeature(const char* name, int value)
***************
*** 2495,2505 ****
return i >= 0 && (decc$feature_set_value(i, 1, value) >= 0 || errno == 0);
}
- #else
- static int kwsysProcessSetVMSFeature(const char* name, int value)
- {
- (void)name;
- (void)value;
- return 1;
- }
#endif
--- 2501,2504 ----
More information about the Cmake-commits
mailing list