tools/image-host.c build error

Tom Rini trini at konsulko.com
Tue Apr 19 21:05:05 CEST 2022


On Tue, Apr 19, 2022 at 09:02:14PM +0200, Mark Kettenis wrote:

> 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.

Please do.  Sadly, I don't see BSD host options in Azure, which is where
we have our Windows/macOS build tests done.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220419/2f9466ce/attachment.sig>


More information about the U-Boot mailing list