From 3f52b11bfc68d7011c9a8f519217a882bd1fc123 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 17 Oct 2012 16:38:43 +0200 Subject: [PATCH] Bug 788955 - Mark some jemalloc functions as weak on BSDs. r=glandium --- memory/mozjemalloc/jemalloc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/memory/mozjemalloc/jemalloc.h b/memory/mozjemalloc/jemalloc.h index 97628692c19..2486e830f70 100644 --- a/memory/mozjemalloc/jemalloc.h +++ b/memory/mozjemalloc/jemalloc.h @@ -47,14 +47,15 @@ extern "C" { #endif -#if defined(MOZ_NATIVE_JEMALLOC) || defined(MOZ_MEMORY_LINUX) +#if defined(MOZ_NATIVE_JEMALLOC) \ + || defined(MOZ_MEMORY_LINUX) || defined(MOZ_MEMORY_BSD) __attribute__((weak)) #endif void jemalloc_stats(jemalloc_stats_t *stats); /* Computes the usable size in advance. */ #if !defined(MOZ_MEMORY_DARWIN) -#if defined(MOZ_MEMORY_LINUX) +#if defined(MOZ_MEMORY_LINUX) || defined(MOZ_MEMORY_BSD) __attribute__((weak)) #endif #if defined(MOZ_JEMALLOC)