mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
lx_fs: Support large files on 32-bit machines
This commit is contained in:
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>
|
||||
|
Loading…
Reference in New Issue
Block a user