summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2012-09-13 22:54:25 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-09-14 05:08:20 (GMT)
commit0f5f7c22677e8681ff2af393d01cadd590fe250f (patch)
tree079d9dd6abf617948022bbfda86bc1c62eaa824b /src
parent26d16fe399b4fe22fbe870c4f4ce6368f0702712 (diff)
downloadQt-0f5f7c22677e8681ff2af393d01cadd590fe250f.zip
Qt-0f5f7c22677e8681ff2af393d01cadd590fe250f.tar.gz
Qt-0f5f7c22677e8681ff2af393d01cadd590fe250f.tar.bz2
Fix MinGW-w64 compilation
ENABLE_EXECUTABLE_ALLOCATOR_FIXED requires sys/mman.h which is not available with MinGW-w64. Change-Id: I6e76ce0c570e5819657debf813f0e80cef907dd4 (cherry picked from commit 02c37f59839b7bb36b231560893fa3bccbecc065) Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
index d930ed7..e95ac7f 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
@@ -1019,7 +1019,7 @@ on MinGW. See https://bugs.webkit.org/show_bug.cgi?id=29268 */
/* Pick which allocator to use; we only need an executable allocator if the assembler is compiled in.
On x86-64 we use a single fixed mmap, on other platforms we mmap on demand. */
#if ENABLE(ASSEMBLER)
-#if CPU(X86_64)
+#if CPU(X86_64) && !COMPILER(MINGW64)
#define ENABLE_EXECUTABLE_ALLOCATOR_FIXED 1
#else
#define ENABLE_EXECUTABLE_ALLOCATOR_DEMAND 1