--- crengine/src/lvstream/lvfilemappedstream.cpp.orig
+++ crengine/src/lvstream/lvfilemappedstream.cpp
@@ -45,7 +45,7 @@ extern "C" {
static inline lvpos_t cr3_lseek(int fd, lvoffset_t offset, int whence) {
#if LVLONG_FILE_SUPPORT == 1
- return (lvpos_t)::lseek64(fd, (off64_t)offset, whence);
+ return (lvpos_t)::lseek(fd, (off64_t)offset, whence);
#else
return (lvpos_t)::lseek(fd, (off_t)offset, whence);
#endif