summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-02 07:57:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-02 07:57:17 +0000
commit90c4dae08fea47797b3ae574e5dfe35dc66f5631 (patch)
tree4198e3ccd0a5bab17db2a0f82ee7b6c643115c69 /process.c
parente193fd8d665567c7f3b827c21a1b77af43e2c391 (diff)
WinCE patch merged
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/process.c b/process.c
index 2a2f9af..a0ab34e 100644
--- a/process.c
+++ b/process.c
@@ -42,7 +42,7 @@ struct timeval rb_time_interval _((VALUE));
#include <sys/times.h>
#endif
-#if defined(HAVE_TIMES) || defined(NT)
+#if defined(HAVE_TIMES) || defined(NT) || defined(_WIN32_WCE)
static VALUE S_Tms;
#endif
@@ -74,7 +74,7 @@ get_pid()
static VALUE
get_ppid()
{
-#ifdef NT
+#if defined(NT) || defined(_WIN32_WCE)
return INT2FIX(0);
#else
return INT2FIX(getppid());
@@ -703,7 +703,7 @@ static VALUE
rb_f_fork(obj)
VALUE obj;
{
-#if !defined(__human68k__) && !defined(NT) && !defined(__MACOS__) && !defined(__EMX__) && !defined(__VMS)
+#if !defined(__human68k__) && !defined(NT) && !defined(__MACOS__) && !defined(__EMX__) && !defined(__VMS) && !defined(_WIN32_WCE)
int pid;
rb_secure(2);
@@ -796,7 +796,7 @@ rb_f_system(argc, argv)
int argc;
VALUE *argv;
{
-#if defined(NT) || defined(__EMX__)
+#if defined(NT) || defined(__EMX__) || defined(_WIN32_WCE)
VALUE cmd;
int status;
@@ -1286,7 +1286,7 @@ Init_process()
rb_mProcess = rb_define_module("Process");
-#if !defined(NT) && !defined(DJGPP)
+#if !defined(NT) && !defined(DJGPP) && !defined(_WIN32_WCE)
#ifdef WNOHANG
rb_define_const(rb_mProcess, "WNOHANG", INT2FIX(WNOHANG));
#else
@@ -1358,7 +1358,7 @@ Init_process()
rb_define_module_function(rb_mProcess, "times", rb_proc_times, 0);
-#if defined(HAVE_TIMES) || defined(NT)
+#if defined(HAVE_TIMES) || defined(NT) || defined(_WIN32_WCE)
S_Tms = rb_struct_define("Tms", "utime", "stime", "cutime", "cstime", 0);
#endif
}