1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in (ac_cv_func_fcntl): fcntl support for MinGW.

* missing/flock.c: workaround for MinGW.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2007-02-28 12:18:48 +00:00
parent 7f005938cf
commit fc16d956cb
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Wed Feb 28 21:15:00 2007 WATANABE Hirofumi <eban@ruby-lang.org>
* configure.in (ac_cv_func_fcntl): fcntl support for MinGW.
* missing/flock.c: workaround for MinGW.
Wed Feb 28 20:51:32 2007 URABE Shyouhei <shyouhei@ruby-lang.org> Wed Feb 28 20:51:32 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
* pack.c (pack_unpack): properly ignore non-base64 octets such as * pack.c (pack_unpack): properly ignore non-base64 octets such as

View file

@ -1,6 +1,7 @@
#include "config.h" #include "config.h"
#if defined HAVE_FCNTL && defined HAVE_FCNTL_H #if defined _WIN32
#elif defined HAVE_FCNTL && defined HAVE_FCNTL_H
/* These are the flock() constants. Since this sytems doesn't have /* These are the flock() constants. Since this sytems doesn't have
flock(), the values of the constants are probably not available. flock(), the values of the constants are probably not available.
@ -118,7 +119,7 @@ flock(int fd, int operation)
return -1; return -1;
} }
} }
#elif !defined _WIN32 #else
int int
flock(int fd, int operation) flock(int fd, int operation)
{ {