update.
[chise/concord.git] / sysdep.h
index b28010a..6ebff4d 100644 (file)
--- a/sysdep.h
+++ b/sysdep.h
@@ -2,6 +2,15 @@
 #define _CHISE_SYSDEP_H
 
 #include <string.h>
+#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.