tools/image-host.c build error

Mark Kettenis mark.kettenis at xs4all.nl
Tue Apr 19 21:02:14 CEST 2022


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


More information about the U-Boot mailing list