Commit 8cc85504 authored by Michaël Zasso's avatar Michaël Zasso Committed by Commit Bot

Fix build on AIX platform

See: https://github.com/nodejs/node-v8/issues/23
Bug: 
Change-Id: Id8e1e828f6f9b1639917319b88c037942f8e73e8
Reviewed-on: https://chromium-review.googlesource.com/743941Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Michaël Zasso <mic.besace@gmail.com>
Cr-Commit-Position: refs/heads/master@{#49064}
parent d2bdbcf7
......@@ -252,7 +252,7 @@ bool OS::CommitRegion(void* address, size_t size, bool is_executable) {
return false;
}
#else
if (mprotect(base, size, prot) == -1) return false;
if (mprotect(address, size, prot) == -1) return false;
#endif // !V8_OS_AIX
return true;
}
......@@ -270,7 +270,7 @@ bool OS::UncommitRegion(void* address, size_t size) {
return mmap(address, size, PROT_NONE, map_flags, kMmapFd, kMmapFdOffset) !=
MAP_FAILED;
#else // V8_OS_AIX
return mprotect(base, size, PROT_NONE) != -1;
return mprotect(address, size, PROT_NONE) != -1;
#endif // V8_OS_AIX
}
......
......@@ -5,9 +5,6 @@
#ifndef V8_UTILS_H_
#define V8_UTILS_H_
#if defined(V8_OS_AIX)
#include <fenv.h> // NOLINT(build/c++11)
#endif
#include <limits.h>
#include <stdlib.h>
#include <string.h>
......@@ -25,6 +22,10 @@
#include "src/vector.h"
#include "src/zone/zone.h"
#if defined(V8_OS_AIX)
#include <fenv.h> // NOLINT(build/c++11)
#endif
namespace v8 {
namespace internal {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment