lib: Make valgrind support optional.
[ashd.git] / lib / mt.c
index db37936..c4dcf86 100644 (file)
--- a/lib/mt.c
+++ b/lib/mt.c
 #endif
 #include <utils.h>
 #include <mt.h>
+
+#ifdef HAVE_VALGRIND
 #include <valgrind/memcheck.h>
+#endif
 
 struct muth *current = NULL;
 static ucontext_t mainctxt;