summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-06-12 13:07:40 +0200
committerunknown <msvensson@neptunus.(none)>2006-06-12 13:07:40 +0200
commitd93ec9ee84de8b1c37fa0996a4c6ef6d2f94e033 (patch)
treeae02ad57959a095875f4ac4195bc20a506b07167 /dbug
parent2dd1dc62462a9b7348d1c815acacddedb5a62d88 (diff)
downloadmariadb-git-d93ec9ee84de8b1c37fa0996a4c6ef6d2f94e033.tar.gz
Bug#19517 No simple way to detect wether server was compiled with libdbug
- Define DBUG_ON and DBUG_OFF in config.h configure.in: Define DBUG_ON and DBUG_OFF in config.h instead of in compiler flags dbug/dbug.c: Undef DBUG_OFF if defined when compiling dbug.c, this is done as we always compile dbug.c even when DBUG_OFF is selected.
Diffstat (limited to 'dbug')
-rw-r--r--dbug/dbug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c
index c991daf3617..575481305e7 100644
--- a/dbug/dbug.c
+++ b/dbug/dbug.c
@@ -66,10 +66,13 @@
* Check of malloc on entry/exit (option "S")
*/
+#include <my_global.h>
+
+/* This file won't compile unless DBUG_OFF is undefined locally */
#ifdef DBUG_OFF
#undef DBUG_OFF
#endif
-#include <my_global.h>
+
#include <m_string.h>
#include <errno.h>
#if defined(MSDOS) || defined(__WIN__)