From: Tom Rini Date: Sun, 3 Sep 2017 20:42:06 -0400 Subject: [U-Boot] bch: don't use __BSD_VISIBLE to test for fls In-Reply-To: <20170827104514.77150-1-jsg@jsg.id.au> References: <20170827104514.77150-1-jsg@jsg.id.au> Message-ID: <20170904004206.GG17058@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: