svn commit: r309331 - head/usr.bin/locale
Eric van Gyzen
vangyzen at FreeBSD.org
Thu Dec 1 16:58:18 UTC 2016
On 11/30/2016 18:19, Bruce Evans wrote:
> On Wed, 30 Nov 2016, Eric van Gyzen wrote:
>
>> Log:
>> Include limits.h for CHAR_MAX
>>
>> This was needed on stable/10. Apparently, sys/param.h supplies CHAR_MAX
>> on head. Include limits.h anyway, for consistency, and because C
>> says so.
>
> sys/param.actually supplies CHAR_MAX (undocumented namespace pollution) in
> all versions of FreeBSD.
Yes, I was too terse. I meant, locale.c gets CHAR_MAX from sys/param.h
on head (and 11), but does not include sys/param.h on 10.
> Untested fixes and cleanups:
>
> Y diff -u2 locale.c~ locale.c
Thanks. Committed.
Eric
More information about the svn-src-all
mailing list