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

Matthias Andree mandree at FreeBSD.org
Tue Jan 7 00:43:20 UTC 2014


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.


More information about the busybox mailing list