summaryrefslogtreecommitdiff
path: root/src/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql')
-rw-r--r--src/mysql/my_global.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mysql/my_global.h b/src/mysql/my_global.h
index 6c3937467..0fbb96f59 100644
--- a/src/mysql/my_global.h
+++ b/src/mysql/my_global.h
@@ -658,7 +658,11 @@ typedef SOCKET_SIZE_TYPE size_socket;
#define SET_STACK_SIZE(X) /* Not needed on real machines */
#if !defined(HAVE_mit_thread) && !defined(HAVE_STRTOK_R)
-#include "../common/strlib.h"
+ #ifdef __WIN32
+ #include "../common/strlib.h"
+ #else
+ #define strtok_r(A,B,C) strtok((A),(B))
+ #endif
#endif
/* Remove some things that mit_thread break or doesn't support */