aboutsummaryrefslogtreecommitdiffstats
path: root/memcheck/memcheck_mmrange_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'memcheck/memcheck_mmrange_map.h')
-rw-r--r--memcheck/memcheck_mmrange_map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/memcheck/memcheck_mmrange_map.h b/memcheck/memcheck_mmrange_map.h
index f291c95..f2c9701 100644
--- a/memcheck/memcheck_mmrange_map.h
+++ b/memcheck/memcheck_mmrange_map.h
@@ -22,6 +22,12 @@
#ifndef QEMU_MEMCHECK_MEMCHECK_MMRANGE_MAP_H
#define QEMU_MEMCHECK_MEMCHECK_MMRANGE_MAP_H
+/* This file should compile iff qemu is built with memory checking
+ * configuration turned on. */
+#ifndef CONFIG_MEMCHECK
+#error CONFIG_MEMCHECK is not defined.
+#endif // CONFIG_MEMCHECK
+
#include "sys-tree.h"
#include "memcheck_common.h"