[PATCH 1/1] sandbox: compatibility of os_get_filesize()
Simon Glass
sjg at chromium.org
Tue Jan 11 19:19:04 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>
More information about the U-Boot
mailing list