From e87f0fc47744cbd7f9e7ebdd78cf3029b52a6714 Mon Sep 17 00:00:00 2001 From: eban Date: Wed, 28 Feb 2007 12:47:35 +0000 Subject: * 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/branches/ruby_1_8@11943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/flock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'missing/flock.c') diff --git a/missing/flock.c b/missing/flock.c index ed619f0e91..5f6b41c357 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. @@ -122,7 +123,7 @@ flock(fd, operation) return -1; } } -#elif !defined _WIN32 +#else int flock(fd, operation) int fd; -- cgit v1.2.3