summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-08 15:04:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-08 15:04:29 +0000
commit8a2dc6f1dd06c0f515add7586f7a64c52e275c46 (patch)
tree307e9b4122060b75e28d3c2d0204c7111749f21f /io.c
parent34b6d256409cf737b57f871069310ca9cf18b3ab (diff)
configure.in: disable posix_fadvise
* configure.in (posix_fadvise): disable use of posix_fadvise itself on 32-bit AIX. [ruby-core:62968] [Bug #9914] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/io.c b/io.c
index 81067126d0..9900118818 100644
--- a/io.c
+++ b/io.c
@@ -8591,10 +8591,7 @@ rb_io_advise(int argc, VALUE *argv, VALUE io)
off = NIL_P(offset) ? 0 : NUM2OFFT(offset);
l = NIL_P(len) ? 0 : NUM2OFFT(len);
- /* AIX currently does not support a 32-bit call to posix_fadvise()
- * if _LARGE_FILES is defined.
- */
-#if defined(HAVE_POSIX_FADVISE) && !(defined(_AIX) && defined(_LARGE_FILES) && !defined(_ARCH_PPC64))
+#ifdef HAVE_POSIX_FADVISE
return do_io_advise(fptr, advice, off, l);
#else
((void)off, (void)l); /* Ignore all hint */