Bug 1229395 - Part 1 - Unbreak MOZ_NATIVE_JEMALLOC after
bug 1141079. r=glandium, a=lizzard
--- a/memory/build/jemalloc_config.cpp
+++ b/memory/build/jemalloc_config.cpp
@@ -6,18 +6,27 @@
#define MOZ_JEMALLOC_IMPL
/* mozmemory_wrap.h needs to be included before MFBT headers */
#include "mozmemory_wrap.h"
#include <mozilla/Assertions.h>
#include "mozilla/Types.h"
+#if defined(MOZ_NATIVE_JEMALLOC)
+MOZ_IMPORT_API int
+je_(mallctl)(const char*, void*, size_t*, void*, size_t);
+MOZ_IMPORT_API int
+je_(mallctlnametomib)(const char *name, size_t *mibp, size_t *miblenp);
+MOZ_IMPORT_API int
+je_(mallctlbymib)(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
+#else
#define DLLEXPORT
#include "jemalloc/jemalloc.h"
+#endif
#ifdef XP_WIN
#include <windows.h>
#endif
#ifdef XP_DARWIN
#include <sys/mman.h>
#endif