Skip to content

Commit

Permalink
MDEV-8285 compile fails under Mac OS X 10.6.8 due to use of strnlen
Browse files Browse the repository at this point in the history
#include <m_string.h> where strnlen() is used
  • Loading branch information
vuvova committed Jun 14, 2015
1 parent e2879ac commit 36bf482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions storage/connect/xobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/* Include mariaDB header file. */
/***********************************************************************/
#include "my_global.h"
#include "m_string.h"

/***********************************************************************/
/* Include required application header files */
Expand Down
2 changes: 1 addition & 1 deletion strings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

IF(NOT HAVE_STRNLEN)
# OSX does not have strnlen
# OSX below 10.7 did not have strnlen
SET(STRINGS_SOURCES ${STRINGS_SOURCES} strnlen.c)
ENDIF()
# Avoid dependencies on perschema data defined in mysys
Expand Down

0 comments on commit 36bf482

Please sign in to comment.