
4 Sep
2017
4 Sep
'17
2:42 a.m.
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@jsg.id.au
Applied to u-boot/master, thanks!
--
Tom