From c661d531e1ef3d955b47c558a1a4458363cd4605 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 28 Feb 2016 14:18:38 +0000 Subject: [PATCH] lkl: Fix fd_get_capacity failing to get the size of large files. On 32bit posix-compatible targets, fd_get_capacity() will fail when the file size is too large. --- tools/lkl/lib/Build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/lkl/lib/Build b/tools/lkl/lib/Build index d22b16cc6353b7..44dff1f1682548 100644 --- a/tools/lkl/lib/Build +++ b/tools/lkl/lib/Build @@ -1,3 +1,5 @@ +CFLAGS_posix-host.o += -D_FILE_OFFSET_BITS=64 + lkl-y += fs.o lkl-y += iomem.o lkl-y += net.o