… | |
… | |
126 | AC_CACHE_CHECK(for fallocate, ac_cv_fallocate, [AC_LINK_IFELSE([ |
126 | AC_CACHE_CHECK(for fallocate, ac_cv_fallocate, [AC_LINK_IFELSE([ |
127 | #include <fcntl.h> |
127 | #include <fcntl.h> |
128 | int main (void) |
128 | int main (void) |
129 | { |
129 | { |
130 | int fd = 0; |
130 | int fd = 0; |
131 | int mode = FALLOC_FL_KEEP_SIZE; |
131 | int mode = 0; |
132 | off_t offset = 1; |
132 | off_t offset = 1; |
133 | off_t len = 1; |
133 | off_t len = 1; |
134 | int res; |
134 | int res; |
135 | res = fallocate (fd, mode, offset, len); |
135 | res = fallocate (fd, mode, offset, len); |
136 | return 0; |
136 | return 0; |