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? */
|
/* should we append? */
|
||||||
if (seek_offset == ~0ULL) {
|
if (seek_offset == ~0ULL) {
|
||||||
off_t off = lseek(_fd, 0, SEEK_END);
|
::off_t off = lseek(_fd, 0, SEEK_END);
|
||||||
if (off == -1)
|
if (off == -1)
|
||||||
return 0;
|
return 0;
|
||||||
seek_offset = off;
|
seek_offset = off;
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include <file_system_session/file_system_session.h>
|
#include <file_system_session/file_system_session.h>
|
||||||
|
|
||||||
/* Linux includes */
|
/* Linux includes */
|
||||||
|
#define _FILE_OFFSET_BITS 64
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user