From 62da750abea80bad64465791e897bcb4c24d5f9a 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: svn+ssh://ci.ruby-lang.org/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 43036b8dc8..4e1f14e9e1 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 v1.2.3