diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-02 07:57:17 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-02 07:57:17 +0000 |
| commit | 4d6d2ae1b417133546c56b3150ef51fa7647e2dc (patch) | |
| tree | 4198e3ccd0a5bab17db2a0f82ee7b6c643115c69 /process.c | |
| parent | 1668ec3e5ce555161454e9b2657c89dc27fa1364 (diff) | |
| download | ruby-4d6d2ae1b417133546c56b3150ef51fa7647e2dc.tar.gz ruby-4d6d2ae1b417133546c56b3150ef51fa7647e2dc.tar.xz ruby-4d6d2ae1b417133546c56b3150ef51fa7647e2dc.zip | |
WinCE patch merged
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
| -rw-r--r-- | process.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 } |
