1.22.0 builds still broken due to strchrnul mis-declaration on FreeBSD (was: [PATCH 1/3] platform: fix missing strchrnul)

Denys Vlasenko vda.linux at googlemail.com
Tue Jan 7 13:09:16 UTC 2014


On Tue, Jan 7, 2014 at 1:43 AM, Matthias Andree <mandree at freebsd.org> wrote:
> FreeBSD/HEAD fails to build busybox 1.22.0, because busybox's
> strchrnul() declaration is in conflict with FreeBSD's; sources at
> <http://svnweb.freebsd.org/base/head/include/string.h?annotate=246803#l75>.
>
> There is, unfortunately, no exact version tag that you can test against,
> but on FreeBSD, you might use:
>
> // sys/param.h is system-specific
> #include <sys/param.h>
> #if __FreeBSD_version < 1000029
> // declare strchrnul
> #endif
>
> Please fix busybox to not declare strchrnul if the system provides it.

Does attached patch work for you?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5.patch
Type: text/x-patch
Size: 916 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140107/46534afb/attachment.bin>


More information about the busybox mailing list