exfat regression fix (64-bit)
After upgrading libexfat to a new version, 64-bit I/O was lost, here is
the fix.
Change-Id: I27382cbf474ce32297dfa0f7bd8036371ccfaef2
diff --git a/exfat/libexfat/io.c b/exfat/libexfat/io.c
index 3c3bd27..60aabb5 100644
--- a/exfat/libexfat/io.c
+++ b/exfat/libexfat/io.c
@@ -298,7 +298,7 @@
/* XXX SEEK_CUR will be handled incorrectly */
return dev->pos = lseek(dev->fd, offset, whence);
#else
- return lseek(dev->fd, offset, whence);
+ return lseek64(dev->fd, offset, whence);
#endif
}
@@ -332,7 +332,7 @@
#ifdef USE_UBLIO
return ublio_pread(dev->ufh, buffer, size, offset);
#else
- return pread(dev->fd, buffer, size, offset);
+ return pread64(dev->fd, buffer, size, offset);
#endif
}
@@ -342,7 +342,7 @@
#ifdef USE_UBLIO
return ublio_pwrite(dev->ufh, buffer, size, offset);
#else
- return pwrite(dev->fd, buffer, size, offset);
+ return pwrite64(dev->fd, buffer, size, offset);
#endif
}