Commit 36bf482d authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-8285 compile fails under Mac OS X 10.6.8 due to use of strnlen

#include <m_string.h> where strnlen() is used
parent e2879ac5
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
/* Include mariaDB header file. */ /* Include mariaDB header file. */
/***********************************************************************/ /***********************************************************************/
#include "my_global.h" #include "my_global.h"
#include "m_string.h"
/***********************************************************************/ /***********************************************************************/
/* Include required application header files */ /* Include required application header files */
......
...@@ -26,7 +26,7 @@ SET(STRINGS_SOURCES bchange.c bmove_upp.c ctype-big5.c ctype-bin.c ctype-cp932.c ...@@ -26,7 +26,7 @@ SET(STRINGS_SOURCES bchange.c bmove_upp.c ctype-big5.c ctype-bin.c ctype-cp932.c
my_strchr.c strcont.c strappend.c) my_strchr.c strcont.c strappend.c)
IF(NOT HAVE_STRNLEN) IF(NOT HAVE_STRNLEN)
# OSX does not have strnlen # OSX below 10.7 did not have strnlen
SET(STRINGS_SOURCES ${STRINGS_SOURCES} strnlen.c) SET(STRINGS_SOURCES ${STRINGS_SOURCES} strnlen.c)
ENDIF() ENDIF()
# Avoid dependencies on perschema data defined in mysys # Avoid dependencies on perschema data defined in mysys
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment