summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-07 11:44:36 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-07 11:44:36 +0000
commita08ab9d1d6bc9de7d0be48790e7c809c6bc0b989 (patch)
tree2951e733ea01e7726b46850c7d914e1aab315ec0
parent2cb31e532706effce5a04877035fdb9dfd4febec (diff)
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mjit.c b/mjit.c
index 10056ec169..e51c703d5a 100644
--- a/mjit.c
+++ b/mjit.c
@@ -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);