From 6d372314d3e25a9193bdcde212edd315ad390e6a Mon Sep 17 00:00:00 2001 From: Tudor Bosman Date: Thu, 26 Sep 2013 17:19:01 -0700 Subject: [PATCH] Add declaration for allocm Test Plan: compiled Reviewed By: lucian@fb.com FB internal diff: D986998 --- folly/Malloc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/folly/Malloc.h b/folly/Malloc.h index e10c8255..94a172b3 100644 --- a/folly/Malloc.h +++ b/folly/Malloc.h @@ -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) { -- 2.34.1