summaryrefslogtreecommitdiff
path: root/libmariadb
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-26 21:15:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-26 21:17:37 +0100
commit74364dad3fcacc32008f59fab2b5fd8aacd19c9d (patch)
tree8e82d0ec5f52a305ef4f5f9729af5749cec7274d /libmariadb
parentd83c63bea70baf4b19b2a6a8bef96bb5e0e6f262 (diff)
At least Mac OS X SDK 10.7 does have strnlen
Change-Id: I35b1299eda7a66c578041be479051031734bc864
Diffstat (limited to 'libmariadb')
-rw-r--r--libmariadb/configs/mac_my_config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmariadb/configs/mac_my_config.h b/libmariadb/configs/mac_my_config.h
index baa4f189a32a..38db37e3cef9 100644
--- a/libmariadb/configs/mac_my_config.h
+++ b/libmariadb/configs/mac_my_config.h
@@ -140,7 +140,9 @@
#define HAVE_STPCPY 1
#define HAVE_STRERROR 1
#define HAVE_STRLCPY 1
-/* #undef HAVE_STRNLEN */
+#if MACOSX_SDK_VERSION >= 1070
+#define HAVE_STRNLEN 1
+#endif
#define HAVE_STRPBRK 1
#define HAVE_STRSEP 1
#define HAVE_STRSTR 1