From: MORIOKA Tomohiko Date: Sat, 11 Aug 2018 05:58:47 +0000 (+0900) Subject: Define HAVE_STRNLEN when __DARWIN_C_LEVEL >= 200809L. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a0d42faa7e36686c979895eea1c147ffce1f2294;p=chise%2Fconcord.git Define HAVE_STRNLEN when __DARWIN_C_LEVEL >= 200809L. --- diff --git a/sysdep.h b/sysdep.h index 202ed26..6ebff4d 100644 --- a/sysdep.h +++ b/sysdep.h @@ -7,6 +7,12 @@ #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. uint strnlen(register const char *s, register uint maxlen) {