summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-06-12 13:07:40 +0200
committermsvensson@neptunus.(none) <>2006-06-12 13:07:40 +0200
commit4ca95f911a5e5c74bb3fcb1141d1ddd065aa9ed0 (patch)
treeae02ad57959a095875f4ac4195bc20a506b07167 /dbug
parent76f066aa3290e6469ce08a18bfd4fa4ebef5479d (diff)
downloadmariadb-git-4ca95f911a5e5c74bb3fcb1141d1ddd065aa9ed0.tar.gz
Bug#19517 No simple way to detect wether server was compiled with libdbug
- Define DBUG_ON and DBUG_OFF in config.h
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__)