From a0d42faa7e36686c979895eea1c147ffce1f2294 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Sat, 11 Aug 2018 14:58:47 +0900 Subject: [PATCH] Define HAVE_STRNLEN when __DARWIN_C_LEVEL >= 200809L. --- sysdep.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 1.7.10.4