]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: eth-raw: fix building with musl library
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 21 Jan 2022 17:01:23 +0000 (18:01 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Jan 2022 21:02:38 +0000 (14:02 -0700)
commit8e72374feb08110e407e008b6d4a158158f9fcf1
tree55f9ca8f562034660716cc727ac344c09e6a5491
parentce51884f5181573eaf3d62c4f84e19b80899aba6
sandbox: eth-raw: fix building with musl library

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@arvanta.net>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Milan P. Stanić <mps@arvanta.net>
arch/sandbox/cpu/eth-raw-os.c