localedef - Fix buildworld bootstrapping issue
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 29 Jul 2015 03:28:05 +0000 (20:28 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 29 Jul 2015 03:28:05 +0000 (20:28 -0700)
commit5c0fb8c48b7e63e49eafb6a330ffbb26b65bd0da
tree7db4a39463d6161feb74528e462e5ba148cbde9d
parentc1e12ca979c08a19f20afb4dc70dfa4fd7a52a48
localedef - Fix buildworld bootstrapping issue

* When running buildworld on an older system the localedef built in
  BTOOLS using /usr/include/limits.h will fail building the locales.

* Fix the problem by adding localedef to CTOOLS.

* Also fix a problem where the old limits.h defines COLL_WEIGHTS_MAX as 0
  and breaks the building of localedef itself.  Check for the case in
  collate.c.
Makefile.inc1
usr.bin/localedef/collate.c