lx_fs: Support large files on 32-bit machines

This commit is contained in:
Norman Feske 2013-12-09 15:11:01 +01:00 committed by Christian Helmuth
parent d1b0af5eb9
commit 28c6763a7d
2 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class File_system::File : public Node
{
/* should we append? */
if (seek_offset == ~0ULL) {
off_t off = lseek(_fd, 0, SEEK_END);
::off_t off = lseek(_fd, 0, SEEK_END);
if (off == -1)
return 0;
seek_offset = off;

View File

@ -11,6 +11,7 @@
#include <file_system_session/file_system_session.h>
/* Linux includes */
#define _FILE_OFFSET_BITS 64
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>