aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-01-21 18:01:23 +0100
committerSimon Glass <sjg@chromium.org>2022-01-25 14:02:38 -0700
commit8e72374feb08110e407e008b6d4a158158f9fcf1 (patch)
tree55f9ca8f562034660716cc727ac344c09e6a5491 /arch/sandbox
parentce51884f5181573eaf3d62c4f84e19b80899aba6 (diff)
downloadu-boot-8e72374feb08110e407e008b6d4a158158f9fcf1.zip
u-boot-8e72374feb08110e407e008b6d4a158158f9fcf1.tar.gz
u-boot-8e72374feb08110e407e008b6d4a158158f9fcf1.tar.bz2
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>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/cpu/eth-raw-os.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c
index 6a8d809..e59b96b 100644
--- a/arch/sandbox/cpu/eth-raw-os.c
+++ b/arch/sandbox/cpu/eth-raw-os.c
@@ -4,6 +4,8 @@
* Copyright (c) 2015-2018 Joe Hershberger <joe.hershberger@ni.com>
*/
+#define _GNU_SOURCE
+
#include <asm/eth-raw-os.h>
#include <errno.h>
#include <fcntl.h>