… | |
… | |
23 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ |
23 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ |
24 | #include <fcntl.h> |
24 | #include <fcntl.h> |
25 | int main(void) |
25 | int 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)]) |
35 | test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux)) |
34 | test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux)) |
36 | |
35 | |