Home
last modified time | relevance | path

Searched hist:"4 ecc988301bc8e981e6d7538c57cdb3aa82f7c1d" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/lib/
H A Dbch.c8f1603bd78a31f52927d398f600e47e2452997a6 Sun Aug 27 10:45:14 UTC 2017 Jonathan Gray <jsg@jsg.id.au> bch: don't use __BSD_VISIBLE to test for fls

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>
4ecc988301bc8e981e6d7538c57cdb3aa82f7c1d Tue Jun 20 07:02:29 UTC 2017 Emmanuel Vadot <manu@bidouilliste.com> bch: Fix build on FreeBSD host

endian.h on FreeBSD system exist in sys/ subdirectory.
FreeBSD already have a fls function defined in strings.h which is included
in string.h if __BSD_VISIBLE is defined, as a check for this.

Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>