Bug 1299330 - Unbreak build on BSDs after bug 1287967. r=luke

MozReview-Commit-ID: KfZItwYpnzc

--HG--
extra : transplant_source : K%FB%A4%CBA%3D%CC%FE%83J%F2%F2%CFU%96%D8%FE%20%F9%EE
This commit is contained in:
Jan Beich 2016-08-30 23:09:44 +00:00
Родитель 90c10e0eba
Коммит e7347cfd95
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -551,14 +551,14 @@ class js::WasmArrayRawBuffer
# ifdef XP_WIN
if (!VirtualAlloc(dataPointer(), newMapped, MEM_RESERVE, PAGE_NOACCESS))
return;
# elif defined(XP_DARWIN)
// No mechanism for remapping on MaxOS. Luckily shouldn't need it here
// as most MacOS configs are 64 bit
return;
#else // Unix
# elif defined(XP_LINUX)
// Note this will not move memory (no MREMAP_MAYMOVE specified)
if (MAP_FAILED == mremap(dataPointer(), mappedSize_, newMapped, 0))
return;
# else
// No mechanism for remapping on MaxOS. Luckily shouldn't need it here
// as most MacOS configs are 64 bit
return;
# endif // !XP_WIN
mappedSize_ = newMapped;