Add declaration for allocm
[folly.git] / folly / Malloc.h
index e10c8255e092f653f9eff340019fa0d6153bc550..94a172b3bdc2552ee5fd3b8b766536e15f6811d0 100644 (file)
@@ -82,6 +82,7 @@ namespace folly {
 
 #if defined(JEMALLOC_MANGLE) && defined(JEMALLOC_EXPERIMENTAL)
 #define rallocm je_rallocm
+#define allocm je_allocm
 #endif
 
 #endif /* ALLOCM_SUCCESS */
@@ -93,6 +94,8 @@ namespace folly {
  */
 extern "C" int rallocm(void**, size_t*, size_t, size_t, int)
 __attribute__((weak));
+extern "C" int allocm(void**, size_t*, size_t, int)
+__attribute__((weak));
 
 #ifdef _LIBSTDCXX_FBSTRING
 namespace std _GLIBCXX_VISIBILITY(default) {