diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-03 12:35:29 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-03 12:35:29 +0000 |
commit | f4755f214c91c726ba264d3053680da1ac59cbf7 (patch) | |
tree | 8708cd90d54be254fd7c9f8d1bce8d05191af5a1 | |
parent | 34c46a676680d26f11ea18f1b7f7ac2b582a60d0 (diff) |
* configure.in: disable fdatasync again on Mac OS X.
[ruby-core:35493][Bug #4500]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | io.c | 5 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sun Apr 3 21:33:58 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * configure.in: disable fdatasync again on Mac OS X. + [ruby-core:35493][Bug #4500] + Sun Apr 3 21:16:20 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * io.c (io_reopen): IO#close releases GVL if possible. diff --git a/configure.in b/configure.in index 01e59f9f3f..8a4e97e339 100644 --- a/configure.in +++ b/configure.in @@ -940,6 +940,7 @@ AS_CASE(["$target_os"], fi ac_cv_type_getgroups=gid_t # getgroups() on Rosetta fills garbage ac_cv_lib_crypt_crypt=no + ac_cv_func_fdatasync=no # Mac OS X wrongly reports it has fdatasync() AC_CACHE_CHECK(for broken crypt with 8bit chars, rb_cv_broken_crypt, [AC_TRY_RUN([ #include <stdio.h> @@ -1414,8 +1414,9 @@ rb_io_fsync(VALUE io) * * Immediately writes all buffered data in <em>ios</em> to disk. * - * <code>NotImplementedError</code> is raised - * if the underlying operating system does not support <em>fdatasync(2)</em>. + * If the underlying operating system does not support <em>fdatasync(2)</em>, + * <code>IO#fsync</code> is called instead (which might raise a + * <code>NotImplementedError</code>). */ static VALUE |