Skip to content

Commit

Permalink
PR 172
Browse files Browse the repository at this point in the history
Fix Sigbus when calling mysql_real_connect_start on ARM/MacOS
  • Loading branch information
9EOR9 committed Mar 3, 2022
1 parent abbd2fa commit d706eaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/ma_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ struct my_context {


#ifdef MY_CONTEXT_USE_UCONTEXT
#if defined(__APPLE__) && !defined(_XOPEN_SOURCE)
#define _XOPEN_SOURCE 600
#endif
#include <ucontext.h>

struct my_context {
Expand Down
4 changes: 4 additions & 0 deletions libmariadb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ ADD_DEFINITIONS(-D HAVE_COMPRESS)
ADD_DEFINITIONS(-D LIBMARIADB)
ADD_DEFINITIONS(-D THREAD)

IF(APPLE)
ADD_DEFINITIONS(-D _XOPEN_SOURCE)
ENDIF()

INCLUDE(${CC_SOURCE_DIR}/cmake/sign.cmake)

SET(MARIADB_LIB_SYMBOLS
Expand Down

0 comments on commit d706eaf

Please sign in to comment.