From: Mark Kettenis Date: Sun, 7 Mar 2021 14:48:36 +0100 (CET) Subject: Broken build on OpenBSD In-Reply-To: <20210301140218.GX10169@bill-the-cat> (message from Tom Rini on Mon, 1 Mar 2021 09:02:18 -0500) References: <20210301140218.GX10169@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Date: Mon, 1 Mar 2021 09:02:18 -0500 > From: Tom Rini > > On Tue, Feb 23, 2021 at 08:07:21PM +0100, Mark Kettenis wrote: > > > Hi Simon, > > > > Commit c5819701a3de61e2ba2ef7ad0b616565b32305e5 broke the build on > > OpenBSD and probably other non-Linux systems. ENODATA, which is now > > used in fit_check_format(), isn't defined. It isn't part of POSIX[1] > > and generally not available on BSD-derived systems. Could you pick > > another error code for this case? > > > > Thanks, > > > > Mark > > > > [1] It is mentioned in the Open Group Base Specification, however it > > is part of the obsolete XSI STREAMS extension which was never part > > of POSIX proper. > > Just for the record: > > https://man7.org/linux/man-pages/man3/errno.3.html: > > ENODATA No message is available on the STREAM head read queue (POSIX.1-2001). > > So perhaps you want to also raise this with the Linux man pages project > folks? Looks like somebody made a mistake and put the XSI STREAMS option marker for it on ENOBUFS just above. I filed a bug report: https://bugzilla.kernel.org/show_bug.cgi?id=212103 Cheers, Mark