bhyve-fw: drop CSM
[oi-userland.git] / components / library / webkitgtk / patches / 08-mmap.patch
blob2ab3f9b3ded0a2ef544be8ffccabbe49119434c3
1 Solaris doesn't have MAP_FILE
3 Not suitable for upstream
5 diff --git a/Source/WTF/wtf/FileSystem.cpp b/Source/WTF/wtf/FileSystem.cpp
6 index febe45f..e05b5c6 100644
7 --- a/Source/WTF/wtf/FileSystem.cpp
8 +++ b/Source/WTF/wtf/FileSystem.cpp
9 @@ -339,7 +339,7 @@ bool MappedFileData::mapFileHandle(PlatformFileHandle handle, FileOpenMode openM
10 #endif
13 - void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
14 + void* data = mmap(0, size, pageProtection, (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
16 if (data == MAP_FAILED) {
17 return false;