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 2F61CC433F5 for ; Tue, 19 Apr 2022 19:02:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C326983B9E; Tue, 19 Apr 2022 21:02:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl 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 BD3B283BC2; Tue, 19 Apr 2022 21:02:17 +0200 (CEST) Received: from sibelius.xs4all.nl (80-61-163-207.fixed.kpn.net [80.61.163.207]) (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 7EC4083AE1 for ; Tue, 19 Apr 2022 21:02:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=mark.kettenis@xs4all.nl Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id eb9a82b1; Tue, 19 Apr 2022 21:02:14 +0200 (CEST) Date: Tue, 19 Apr 2022 21:02:14 +0200 (CEST) From: Mark Kettenis To: Philippe Reynes CC: u-boot@lists.denx.de, sjg@chromium.org, trini@konsulko.com Subject: tools/image-host.c build error Message-ID: 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 Hello Philippe, commit 6e052d1cbafbedbfba73070da483111f2ae68e5a broke building u-boot on OpenBSD: tools/image-host.c:1208:10: error: use of undeclared identifier 'ENODATA' The problem here is that ENODATA isn't in POSIX proper (it is part of the obsolete XSI STREAMS option so typically absent on systems with BSD heritage). So ENODATA should not be used in the host tools that are part of U-Boot. I would simply replace it with EINVAL, but maybe you have a different opinion. I can send a proper patch if so desired. Thanks, Mark