diff options
Diffstat (limited to '')
-rw-r--r-- | sql/sql_test.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index 9163d8fc..5cc192af 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -29,11 +29,16 @@ #include <thr_alarm.h> #include "sql_connect.h" #include "thread_cache.h" -#if defined(HAVE_MALLINFO) && defined(HAVE_MALLOC_H) + +#if defined(HAVE_MALLOC_H) #include <malloc.h> -#elif defined(HAVE_MALLINFO) && defined(HAVE_SYS_MALLOC_H) +#endif + +#if defined(HAVE_SYS_MALLOC_H) #include <sys/malloc.h> -#elif defined(HAVE_MALLOC_ZONE) +#endif + +#if defined(HAVE_MALLOC_ZONE) #include <malloc/malloc.h> #endif |