diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-07 11:44:36 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-07 11:44:36 +0000 |
commit | 3c27e50d8f3de43fdb719caca73a1979d244be2b (patch) | |
tree | 2951e733ea01e7726b46850c7d914e1aab315ec0 | |
parent | 10dba4cd9bbb8d727fa612de00e444cb1df01132 (diff) | |
download | ruby-3c27e50d8f3de43fdb719caca73a1979d244be2b.tar.gz |
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'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | mjit.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -87,14 +87,14 @@ #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); |