fix build when sanitizers are enabled and jemalloc is disabled
[folly.git] / folly / memory / test / MallctlHelperTest.cpp
index dc447a7..0b5444c 100644 (file)
  */
 
 #include <folly/memory/MallctlHelper.h>
+#include <folly/CPortability.h>
 #include <folly/init/Init.h>
 #include <folly/memory/Malloc.h>
 #include <folly/portability/GTest.h>
 
-#ifdef FOLLY_HAVE_LIBJEMALLOC
+#if defined(FOLLY_HAVE_LIBJEMALLOC) && !defined(FOLLY_SANITIZE)
 #include <jemalloc/jemalloc.h>
 #endif