Bug 95637 - Can't compile with MinGW-w64 - sys/mman.h not found
Summary: Can't compile with MinGW-w64 - sys/mman.h not found
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-01 00:26 PDT by Jonathan Liu
Modified: 2012-09-01 00:35 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Liu 2012-09-01 00:26:39 PDT
Building with MinGW-w64 results in ENABLE_EXECUTABLE_ALLOCATOR_FIXED being defined to 1 in Platform.h.
Compiling javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp results in a compile error because sys/mman.h is not available when using MinGW.

Platform.h needs "#if CPU(X86_64) || PLATFORM(IOS)" changed to "#if (CPU(X86_64) || PLATFORM(IOS)) && !COMPILER(MINGW64)".
Comment 1 Jonathan Liu 2012-09-01 00:35:40 PDT
This seems to be already fixed. I was looking at the wrong version.