On Tue, Sep 18, 2012 at 11:25 AM, Uros Bizjak <ubiz...@gmail.com> wrote:
> On Tue, Sep 18, 2012 at 11:16 AM, Richard Guenther
> <richard.guent...@gmail.com> wrote:
>
>>> CentOS 5.8 uses glibc version 2.5 that needs _GNU_SOURCE defined to use 
>>> strnlen.
>>
>> Hm, shouldn't libiberty contain a xstrnlen?  I bet strnlen isn't available
>> everywhere.
>
> I didn't find it in the sources.  OTOH, mmapio.c already defines
> _GNU_SOURCE for some reason, so I just follow this approach.

I said it _should_ contain xstrnlen, not that it does ;)  I suppose
Ian should have
used strlen or added xstrnlen to libiberty.

Richard.

> Uros.

Reply via email to