summaryrefslogtreecommitdiff
path: root/sql/sql_test.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-10-16 20:55:15 +0300
committermonty@mashka.mysql.fi <>2003-10-16 20:55:15 +0300
commitb1dba93cdb75d52d5754a55521d429e2005a6d49 (patch)
tree15abb95c73d02f77be5ffd9d90398f905401d815 /sql/sql_test.cc
parent3414cf2e9fade61841fb2a9e460fb118a8c4911b (diff)
downloadmariadb-git-b1dba93cdb75d52d5754a55521d429e2005a6d49.tar.gz
Safety fix to detect multiple calls to my_thread_end()
Portability fix (For Mac OS X)
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r--sql/sql_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc
index 6498a52cc09..a217d40246f 100644
--- a/sql/sql_test.cc
+++ b/sql/sql_test.cc
@@ -22,7 +22,11 @@
#include "sql_select.h"
#include <hash.h>
#include <thr_alarm.h>
+#if defined(HAVE_MALLINFO) && defined(HAVE_MALLOC_H)
#include <malloc.h>
+#elif defined(HAVE_MALLINFO) && defined(HAVE_SYS_MALLOC_H)
+#include <sys/malloc.h>
+#endif
/* Intern key cache variables */
extern "C" pthread_mutex_t THR_LOCK_keycache;