fix build when sanitizers are enabled and jemalloc is disabled
[folly.git] / folly / experimental / JemallocNodumpAllocator.h
index 93b14f7..16d6aec 100644 (file)
 
 #pragma once
 
+#include <folly/CPortability.h>
 #include <folly/portability/Config.h>
 
-#ifdef FOLLY_HAVE_LIBJEMALLOC
+#if defined(FOLLY_HAVE_LIBJEMALLOC) && !defined(FOLLY_SANITIZE)
 
 #include <folly/portability/SysMman.h>
 #include <jemalloc/jemalloc.h>