[PATCH 1/1] sandbox: compatibility of os_get_filesize()
Simon Glass
sjg at chromium.org
Thu Jan 13 19:00:53 CET 2022
On Mon, 10 Jan 2022 at 17:50, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> U-Boot define loff_t as long long. But the header
> /usr/include/linux/types.h may not define it.
> This has lead to a build error on Alpine Linux.
>
> So let's use long long instead of loff_t for
> the size parameter of function os_get_filesize().
>
> Reported-by: Milan P. Stanić <mps at arvanta.net>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> arch/sandbox/cpu/os.c | 10 ++++++++--
> include/os.h | 2 +-
> 2 files changed, 9 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list