[U-Boot] bch: don't use __BSD_VISIBLE to test for fls
Tom Rini
trini at konsulko.com
Mon Sep 4 00:42:06 UTC 2017
On Sun, Aug 27, 2017 at 08:45:14PM +1000, Jonathan Gray wrote:
> Commit 4ecc988301bc8e981e6d7538c57cdb3aa82f7c1d assumes fls is in libc
> if __BSD_VISIBLE is defined. This appears to only be true on FreeBSD
> and DragonFlyBSD. OpenBSD defines __BSD_VISIBLE and does not have fls
> in strings.h/libc.
>
> Switch the test for __BSD_VISIBLE to one for __DragonFly__ and
> __FreeBSD__ to unbreak the build on OpenBSD.
>
> Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170903/352afea6/attachment.sig>
More information about the U-Boot
mailing list