]> git.baikalelectronics.ru Git - uboot.git/commit
bch: don't use __BSD_VISIBLE to test for fls
authorJonathan Gray <jsg@jsg.id.au>
Sun, 27 Aug 2017 10:45:14 +0000 (20:45 +1000)
committerTom Rini <trini@konsulko.com>
Sun, 3 Sep 2017 19:30:31 +0000 (15:30 -0400)
commit32898accba7a9c1881b724a8196a8d0d0d3fe416
tree01b6fc85b5b00155dddbc946b466a427e3a7fb6a
parente626817dca0a727579bf18fa5519513b23aba131
bch: don't use __BSD_VISIBLE to test for fls

Commit bf7619cadd536bfd59c1b037e39b26b18f4d0f16 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@jsg.id.au>
lib/bch.c