X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fconcord.git;a=blobdiff_plain;f=sysdep.h;h=202ed260583c415429e1a295e668946d867ad8fd;hp=b28010a94dccbe0ad642604d8b3aed0b82a8ce81;hb=HEAD;hpb=d0643a1a7a29058771d020e4b24f2833fdce9522 diff --git a/sysdep.h b/sysdep.h index b28010a..6ebff4d 100644 --- a/sysdep.h +++ b/sysdep.h @@ -2,6 +2,15 @@ #define _CHISE_SYSDEP_H #include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#ifndef HAVE_STRNLEN +#if defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L +#define HAVE_STRNLEN 1 +#endif +#endif #ifndef HAVE_STRNLEN /* original in mysql, strings/strnlen.c.