diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-28 12:18:48 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-28 12:18:48 +0000 |
commit | 4d363c6e82f02b1548a28c057e242a88067bf4a0 (patch) | |
tree | cd0396855e1570e2e065f8d339c67398fb0aea16 /missing | |
parent | 12f9a91a0ec9d3e5f045defe1635fed0170cae15 (diff) | |
download | ruby-4d363c6e82f02b1548a28c057e242a88067bf4a0.tar.gz ruby-4d363c6e82f02b1548a28c057e242a88067bf4a0.tar.xz ruby-4d363c6e82f02b1548a28c057e242a88067bf4a0.zip |
* configure.in (ac_cv_func_fcntl): fcntl support for MinGW.
* missing/flock.c: workaround for MinGW.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r-- | missing/flock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/missing/flock.c b/missing/flock.c index 7a5a58aaa..2219d176d 100644 --- a/missing/flock.c +++ b/missing/flock.c @@ -1,6 +1,7 @@ #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 flock(), the values of the constants are probably not available. @@ -118,7 +119,7 @@ flock(int fd, int operation) return -1; } } -#elif !defined _WIN32 +#else int flock(int fd, int operation) { |