ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/libeio.m4
(Generate patch)

Comparing libeio/libeio.m4 (file contents):
Revision 1.4 by root, Sun May 11 01:08:05 2008 UTC vs.
Revision 1.5 by root, Mon May 12 00:31:43 2008 UTC

23AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ 23AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([
24#include <fcntl.h> 24#include <fcntl.h>
25int main(void) 25int main(void)
26{ 26{
27 int fd = 0; 27 int fd = 0;
28 off64_t offset = 1;
29 size_t count = 2; 28 size_t count = 2;
30 ssize_t res; 29 ssize_t res;
31 res = readahead (fd, offset, count); 30 res = readahead (fd, 0, count);
32 return 0; 31 return 0;
33} 32}
34],ac_cv_readahead=yes,ac_cv_readahead=no)]) 33],ac_cv_readahead=yes,ac_cv_readahead=no)])
35test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux)) 34test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux))
36 35

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines