From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09974C433F5 for ; Fri, 21 Jan 2022 20:12:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CC877830DF; Fri, 21 Jan 2022 21:12:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=arvanta.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 5D53281E25; Fri, 21 Jan 2022 21:12:22 +0100 (CET) Received: from fx.arvanta.net (static-213-198-238-194.adsl.eunet.rs [213.198.238.194]) by phobos.denx.de (Postfix) with ESMTP id D436B81E25 for ; Fri, 21 Jan 2022 21:12:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=arvanta.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mps@arvanta.net Received: from m1 (unknown [10.5.1.15]) by fx.arvanta.net (Postfix) with ESMTP id 9209C252F2; Fri, 21 Jan 2022 21:12:19 +0100 (CET) Date: Fri, 21 Jan 2022 21:12:19 +0100 From: Milan =?utf-8?Q?P=2E_Stani=C4=87?= To: Heinrich Schuchardt Cc: Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH 1/1] sandbox: eth-raw: fix building with musl library Message-ID: References: <20220121170123.363645-1-heinrich.schuchardt@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220121170123.363645-1-heinrich.schuchardt@canonical.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean 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ć > Signed-off-by: Heinrich Schuchardt Tested-by: Milan P. Stanić > --- > 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 > */ > > +#define _GNU_SOURCE > + > #include > #include > #include > -- > 2.33.1 >