[PATCH 1/1] sandbox: eth-raw: fix building with musl library

Simon Glass sjg at chromium.org
Wed Jan 26 16:36:30 CET 2022


Hi,

it works and build pass without error or warning.
Tested on alpine edge aarch64 bare metal.

Thank you

On Fri, 2022-01-21 at 18:01, Heinrich Schuchardt wrote:
> The definition of struct udphdr in include netinet/udp.h in the
> musl library differs from the definition in the glibc library.
>
> To use the same definition with musl the symbol _GNU_SOURCE has
> to be defined.
>
> Reported-by: Milan P. Stanić <mps at arvanta.net>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

Tested-by: Milan P. Stanić <mps at arvanta.net>

> ---
>  arch/sandbox/cpu/eth-raw-os.c | 2 ++
>  1 file changed, 2 insertions(+)
>
Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list