]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: compatibility of os_get_filesize()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 11 Jan 2022 00:50:24 +0000 (01:50 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Jan 2022 16:13:41 +0000 (09:13 -0700)
commit880dbc5f808b65f62b47c78939e12d32c1701ed6
treead070134af1229b18b7ade25070aeef82182baf1
parentdca7926c2cb82ff4aea665ed97e38520d39865a5
sandbox: compatibility of os_get_filesize()

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@arvanta.net>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Milan P. Stanić <mps@arvanta.net>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
include/os.h