summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@sun.com>2010-04-22 09:30:33 +0200
committerJon Olav Hauglid <jon.hauglid@sun.com>2010-04-22 09:30:33 +0200
commit2801a2a054f39fb97f6100cfee0c542ccf3ded8d (patch)
tree11105781428851674446d7b8fbbf479397f44e10 /sql
parentda1fbb375eebb4e3a2e65ca1955a26b4a36023a9 (diff)
parentdbe6981b30caac4856368a61a861dac9f0a73d87 (diff)
downloadmariadb-git-2801a2a054f39fb97f6100cfee0c542ccf3ded8d.tar.gz
merge from mysql-trunk-bugfixing
Diffstat (limited to 'sql')
-rw-r--r--sql/item_strfunc.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 32baae87c50..7025cf1af56 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -29,6 +29,13 @@
#pragma implementation // gcc: Class implementation
#endif
+/*
+ NOTE: zlib.h must be included *before* my_global.h because my_global.h
+ may undef some HAVE_ macros. Including zlib.h after my_global.h may lead
+ to re-defining undefined macros, thus to compile errors.
+*/
+#include <zlib.h> // Must be before my_global.h
+
/* May include caustic 3rd-party defs. Use early, so it can override nothing. */
#include "sha2.h"
#include "my_global.h" // HAVE_*
@@ -51,7 +58,6 @@
#include "my_md5.h"
#include "sha1.h"
#include "my_aes.h"
-#include <zlib.h>
C_MODE_START
#include "../mysys/my_static.h" // For soundex_map
C_MODE_END