--- source/base/image/image.cpp.orig 2013-02-05 19:27:13.000000000 -0600
+++ source/base/image/image.cpp 2013-02-28 04:26:16.000000000 -0600
meta[0] = sizeof(pixel_type);
- if (lseek64(m_File, pos, SEEK_SET) != pos)
+ if (lseek(m_File, pos, SEEK_SET) != pos)
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file write/seek failed at creation.");
if (write(m_File, &meta[0], (int) sizeof(size_type)*3) != (sizeof(size_type)*3))
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file write failed at creation.");
pos = block * sizeof(pixel_type) * m_Blocksize;
int chunk = sizeof(pixel_type) * m_Blocksize;
- if (lseek64(m_File, pos, SEEK_SET) != pos)
+ if (lseek(m_File, pos, SEEK_SET) != pos)
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file read/seek failed.");
int bytes = read(m_File, &m_Buffer[0], chunk);
if (bytes != (sizeof(pixel_type) * m_Blocksize))
pos = m_CurrentBlock * sizeof(pixel_type) * m_Blocksize;
- if (lseek64(m_File, pos, SEEK_SET) != pos)
+ if (lseek(m_File, pos, SEEK_SET) != pos)
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file write/seek failed.");
if (write(m_File, &m_Buffer[0], (int) sizeof(pixel_type) * m_Blocksize) != (sizeof(pixel_type) * m_Blocksize))
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file write failed.");