diff options
author | unknown <knielsen@knielsen-hq.org> | 2009-03-31 10:06:51 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2009-03-31 10:06:51 +0200 |
commit | 6120cc96c9090634211a87260dc82f8aa54521c4 (patch) | |
tree | 487b1c66f70a3cbe37c4e74503b3660b334fc3b5 /mysys/my_malloc.c | |
parent | 032ef1fa0781490606c2cf690420464ed98ace8c (diff) | |
download | mariadb-git-6120cc96c9090634211a87260dc82f8aa54521c4.tar.gz |
Fix build error after last push with --with-debug=full due to SAFEMALLOC now being
defined in my_config.h (as opposed to in CFLAGS before.)
mysys/my_malloc.c:
Need to include my_global.h before messing with SAFEMALLOC, as now that macro may be
re-defined in my_config.h, which is included from my_global.h
mysys/my_once.c:
Need to include my_global.h before messing with SAFEMALLOC, as now that macro may be
re-defined in my_config.h, which is included from my_global.h
mysys/my_realloc.c:
Need to include my_global.h before messing with SAFEMALLOC, as now that macro may be
re-defined in my_config.h, which is included from my_global.h
Diffstat (limited to 'mysys/my_malloc.c')
-rw-r--r-- | mysys/my_malloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_malloc.c b/mysys/my_malloc.c index 12793ad451b..12af5603a93 100644 --- a/mysys/my_malloc.c +++ b/mysys/my_malloc.c @@ -13,6 +13,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/* my_global.h may define SAFEMALLOC (through my_config.h). */ +#include <my_global.h> + #ifdef SAFEMALLOC /* We don't need SAFEMALLOC here */ #undef SAFEMALLOC #endif |