summaryrefslogtreecommitdiff
path: root/www/webkit-gtk/patches/patch-Source_WebCore_platform_FileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/webkit-gtk/patches/patch-Source_WebCore_platform_FileSystem.cpp')
-rw-r--r--www/webkit-gtk/patches/patch-Source_WebCore_platform_FileSystem.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/webkit-gtk/patches/patch-Source_WebCore_platform_FileSystem.cpp b/www/webkit-gtk/patches/patch-Source_WebCore_platform_FileSystem.cpp
new file mode 100644
index 00000000000..f01c4572617
--- /dev/null
+++ b/www/webkit-gtk/patches/patch-Source_WebCore_platform_FileSystem.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-Source_WebCore_platform_FileSystem.cpp,v 1.1 2017/04/13 16:58:14 jperkin Exp $
+
+Support MAP_FILE if unavailable.
+
+--- Source/WebCore/platform/FileSystem.cpp.orig 2016-08-22 12:21:08.000000000 +0000
++++ Source/WebCore/platform/FileSystem.cpp
+@@ -189,6 +189,9 @@ MappedFileData::MappedFileData(const Str
+ return;
+ }
+
++#ifndef MAP_FILE
++#define MAP_FILE 0
++#endif
+ void* data = mmap(0, size, PROT_READ, MAP_FILE | MAP_SHARED, fd, 0);
+ close(fd);
+