From: "Milan P. Stanić" <mps@arvanta.net>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: Simon Glass <sjg@chromium.org>, u-boot@lists.denx.de
Subject: Re: [PATCH 1/1] sandbox: eth-raw: fix building with musl library
Date: Fri, 21 Jan 2022 21:12:19 +0100 [thread overview]
Message-ID: <YesToyhe2mjxIKBj@m1> (raw)
In-Reply-To: <20220121170123.363645-1-heinrich.schuchardt@canonical.com>
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@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 | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c
> index 6a8d809756..e59b96be5f 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>
> --
> 2.33.1
>
next prev parent reply other threads:[~2022-01-21 20:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-21 17:01 [PATCH 1/1] sandbox: eth-raw: fix building with musl library Heinrich Schuchardt
2022-01-21 20:12 ` Milan P. Stanić [this message]
2022-01-26 15:36 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YesToyhe2mjxIKBj@m1 \
--to=mps@arvanta.net \
--cc=heinrich.schuchardt@canonical.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox