mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
lx_fs: Support large files on 32-bit machines
This commit is contained in:
committed by
Christian Helmuth
parent
d1b0af5eb9
commit
28c6763a7d
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user