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
Родитель 1fb7597a1b
Коммит f4828d35f5
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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)

Просмотреть файл

@ -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>