On Tue, Sep 18, 2012 at 2: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.

mmapio.c uses _GNU_SOURCE so that getpagesize is available on GNU/Linux systems.

I'll fix the strnlen issue some other way.

Ian

Reply via email to