Title: [237923] trunk/Source/WebKit
Revision
237923
Author
carlo...@webkit.org
Date
2018-11-07 06:49:17 -0800 (Wed, 07 Nov 2018)

Log Message

Unreviewed. Fix GTK/WPE build when memfd is not available after r237922.

* Platform/unix/SharedMemoryUnix.cpp:
(WebKit::createSharedMemory):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (237922 => 237923)


--- trunk/Source/WebKit/ChangeLog	2018-11-07 14:24:09 UTC (rev 237922)
+++ trunk/Source/WebKit/ChangeLog	2018-11-07 14:49:17 UTC (rev 237923)
@@ -1,5 +1,12 @@
 2018-11-07  Carlos Garcia Campos  <cgar...@igalia.com>
 
+        Unreviewed. Fix GTK/WPE build when memfd is not available after r237922.
+
+        * Platform/unix/SharedMemoryUnix.cpp:
+        (WebKit::createSharedMemory):
+
+2018-11-07  Carlos Garcia Campos  <cgar...@igalia.com>
+
         [Linux] Use memfd_create when available in SharedMemory implementation
         https://bugs.webkit.org/show_bug.cgi?id=189741
 

Modified: trunk/Source/WebKit/Platform/unix/SharedMemoryUnix.cpp (237922 => 237923)


--- trunk/Source/WebKit/Platform/unix/SharedMemoryUnix.cpp	2018-11-07 14:24:09 UTC (rev 237922)
+++ trunk/Source/WebKit/Platform/unix/SharedMemoryUnix.cpp	2018-11-07 14:49:17 UTC (rev 237923)
@@ -113,9 +113,10 @@
 
 static int createSharedMemory()
 {
+    int fileDescriptor = -1;
+
 #if HAVE(LINUX_MEMFD_H)
     static bool isMemFdAvailable = true;
-    int fileDescriptor = -1;
     if (isMemFdAvailable) {
         do {
             fileDescriptor = syscall(__NR_memfd_create, "WebKitSharedMemory", MFD_CLOEXEC);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to