ruby-changes:50162
From: k0kubun <ko1@a...>
Date: Wed, 7 Feb 2018 20:44:43 +0900 (JST)
Subject: [ruby-changes:50162] k0kubun:r62280 (trunk): mjit.c: windows should include fcntl.h too
k0kubun 2018-02-07 20:44:36 +0900 (Wed, 07 Feb 2018) New Revision: 62280 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62280 Log: mjit.c: windows should include fcntl.h too Fixing build failure on mswin by r62279 mjit.c ../mjit.c(1137) : error C2065: 'O_RDONLY' : undeclared identifier NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\cl.EXE"' : return code '0x2' Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 62279) +++ mjit.c (revision 62280) @@ -87,14 +87,14 @@ https://github.com/ruby/ruby/blob/trunk/mjit.c#L87 #include <winsock2.h> #include <windows.h> #else -#ifdef HAVE_FCNTL_H -#include <fcntl.h> -#endif #include <sys/wait.h> #include <sys/time.h> #include <dlfcn.h> #endif #include <errno.h> +#ifdef HAVE_FCNTL_H +#include <fcntl.h> +#endif extern void rb_native_mutex_lock(rb_nativethread_lock_t *lock); extern void rb_native_mutex_unlock(rb_nativethread_lock_t *lock); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/