diff options
-rw-r--r-- | eio.c | 4 | ||||
-rw-r--r-- | libeio.m4 | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -951,10 +951,10 @@ eio__sync_file_range (int fd, off_t offset, size_t nbytes, unsigned int flags) } static int -eio__fallocate (int fd, int mode, off_t offset, size_t nbytes) +eio__fallocate (int fd, int mode, off_t offset, size_t len) { #if HAVE_FALLOCATE - return fallocate (fd, offset, nbytes, flags); + return fallocate (fd, mode, offset, len); #else errno = ENOSYS; return -1; @@ -128,7 +128,7 @@ AC_CACHE_CHECK(for fallocate, ac_cv_fallocate, [AC_LINK_IFELSE([ int main (void) { int fd = 0; - int mode = FALLOC_FL_KEEP_SIZE; + int mode = 0; off_t offset = 1; off_t len = 1; int res; |