Bug 1115078 - Unbreak MOZ_JEMALLOC3 build on FreeBSD after bug 899126. r=glandium

This commit is contained in:
Jan Beich 2014-12-23 12:32:00 -05:00
parent 263ccccd7b
commit 46f6d306da
2 changed files with 3 additions and 2 deletions

View File

@ -3416,6 +3416,8 @@ for file in $MALLOC_HEADERS; do
fi
done
MOZ_CHECK_HEADERS(alloca.h)
AC_CHECK_FUNCS(strndup posix_memalign memalign)
AC_CHECK_FUNCS(malloc_usable_size)

View File

@ -10,7 +10,6 @@
#include "mozmemory_wrap.h"
#include "jemalloc_types.h"
#include "jemalloc/internal/jemalloc_internal_defs.h" // for JEMALLOC_HAS_ALLOCA_H
#include "mozilla/Types.h"
#include <stdbool.h>
@ -69,7 +68,7 @@ je_(nallocx)(size_t size, int flags);
# include <malloc.h>
# define alloca _alloca
# else
# ifdef JEMALLOC_HAS_ALLOCA_H
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else
# include <stdlib.h>