From a4e981bf047d4a14c09739a193d8cf421f0fca0a Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 25 Apr 2008 01:55:22 +0000 Subject: * include/ruby/win32.h: define mode_t for umask. * process.c (check_exec_options_i, check_exec_fds, run_exec_options): support "close_others" only when fork(2) is available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/win32.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 43036b8dc..4e1f14e9e 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -89,6 +89,9 @@ typedef unsigned int uintptr_t; # define _UINTPTR_T_DEFINED # endif #endif +#ifndef __MINGW32__ +# define mode_t int +#endif #ifdef _M_IX86 # define WIN95 1 -- cgit