Solaris doesn't have MAP_FILE Not suitable for upstream diff --git a/Source/WTF/wtf/FileSystem.cpp b/Source/WTF/wtf/FileSystem.cpp index febe45f..e05b5c6 100644 --- a/Source/WTF/wtf/FileSystem.cpp +++ b/Source/WTF/wtf/FileSystem.cpp @@ -339,7 +339,7 @@ bool MappedFileData::mapFileHandle(PlatformFileHandle handle, FileOpenMode openM #endif } - void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0); + void* data = mmap(0, size, pageProtection, (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0); if (data == MAP_FAILED) { return false;