[tlbuild] build failure: libs/zziplib/zziplib-0.13.58/zzip/stat.c needs #include <strings.h> for strcasecmp

taco taco at elvenkind.com
Thu May 27 21:19:29 CEST 2010


Vladimir Volovich wrote:
> "t" == taco  writes:
> 
>  t> I agree. But considering the weirdness of AIX, it may fall to
>  t> Vladimir to write that function.
> 
> it is present in AIX, but defined in <strings.h> (as also documented in
> linux man pages; but apparently in linux, <string.h> or some other
> headee implicitly includes <strings.h>).
> 
> so if the master sources won't be fixed for this, it would be easier for
> me to just add #include <strings.h> to that file instead of writing my own
> strcasecmp.

In that case, it seems such an include is best combined with a
configure test? Then we could have

#ifndef HAVE_STRCASECMP
#include <strings.h>
#endif

somewhere in a header. Or does that give problems as well? Karl?

Best wishes,
Taco


More information about the tlbuild mailing list