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 A4048C433F5 for ; Fri, 21 Jan 2022 17:01:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 89534835B3; Fri, 21 Jan 2022 18:01:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.b="KXTr9h8i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F85E835CA; Fri, 21 Jan 2022 18:01:30 +0100 (CET) Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9620A8359C for ; Fri, 21 Jan 2022 18:01:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from workstation5.fritz.box (ip-088-152-144-107.um26.pools.vodafone-ip.de [88.152.144.107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id D8BB23FE77; Fri, 21 Jan 2022 17:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642784485; bh=R4w3JeBUKR0d0bZrA/TUmuVfgY/pelLKbZcxu+9VWW4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=KXTr9h8ijQX/29iXa059QZEdtirlCzs8Tce8s8stdryOzClWFfur1ZmQVDB6R0pZb IbrDbiicstf4Zx/EaAIYH/I8YJLogYf3xoC9pq4P8NBtDXsqdIfy7CTWNhDg+5uYil oic5AusGQJbTT1AsO/mj5vx/uEqbezQMYsY5dPqzcIlwGHSFkUzjYNRa5AUD20i7Bp wzc2tjYfxdELmF/keXhY/gQ/t252PU2kEt6wmP6Lt1b2DdHcsNbsOn6CNQrV/Ue+py 0vJd+p8D6M5RgKZ7jozEh0k1J4idYwx9L6b9Idvso1XVD9tfaFder1NF9n/8Tp1K8t 8kfpkAePFn42g== From: Heinrich Schuchardt To: Simon Glass Cc: u-boot@lists.denx.de, Heinrich Schuchardt , =?UTF-8?q?Milan=20P=20=2E=20Stani=C4=87?= Subject: [PATCH 1/1] sandbox: eth-raw: fix building with musl library Date: Fri, 21 Jan 2022 18:01:23 +0100 Message-Id: <20220121170123.363645-1-heinrich.schuchardt@canonical.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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 --- 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