summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <oleavr@gmail.com>2020-11-06 02:46:24 +0100
committerNode.js GitHub Bot <github-bot@iojs.org>2020-11-12 13:54:13 +0000
commitc1442ec9c45cecf156fb32ad2174c4aceef37de7 (patch)
tree32df06d907a05d433f9dc1194e16b3e48184e4e0 /deps
parentd37ddb484dcb2016ebbd98f5c97e42dbae33c581 (diff)
downloadnode-new-c1442ec9c45cecf156fb32ad2174c4aceef37de7.tar.gz
deps: V8: cherry-pick 1d0f426311d4
Original commit message: [mac-arm64] Fix missing #include For an "#if defined(MAP_JIT)" test to work as expected, <sys/mman.h> must be included in the compilation unit. Bug: chromium:1144200 Change-Id: Ia0bf35ec1872c02457f1fbc0ee6689c7f7d27d4a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2517689 Reviewed-by: Clemens Backes <clemensb@chromium.org> Reviewed-by: Igor Sheludko <ishell@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/master@{#70986} PR-URL: https://github.com/nodejs/node/pull/35986 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'deps')
-rw-r--r--deps/v8/src/base/page-allocator.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/src/base/page-allocator.cc b/deps/v8/src/base/page-allocator.cc
index 62dfc94a83..9f48ee79fe 100644
--- a/deps/v8/src/base/page-allocator.cc
+++ b/deps/v8/src/base/page-allocator.cc
@@ -6,6 +6,10 @@
#include "src/base/platform/platform.h"
+#if V8_OS_MACOSX
+#include <sys/mman.h> // For MAP_JIT.
+#endif
+
namespace v8 {
namespace base {