* Bruno Haible wrote on Tue, May 30, 2006 at 09:29:37PM CEST: > Ralf Wildenhues wrote: > > Tested on AIX 4.3.3, 5.1, 5.2 (first has strnlen and strndup broken, > > second has strnlen fixed, last has both fixed) > > Hmm? My results for AIX 5.1 differ: On AIX 5.1.0.0 I get > > checking whether strndup is declared... yes > checking for working strndup... no > checking whether strnlen is declared... yes > checking for working strnlen... no
You may want to check which libc version your host has installed, maybe they fixed strnlen semantics in some revision (lslpp -L). The one I tested on has: bos.rte.libc 5.1.0.68 C F libc Library Cheers, Ralf