Changeset 268914 in webkit
- Timestamp:
- Oct 23, 2020, 1:26:00 AM (6 years ago)
- Location:
- releases/WebKitGTK/webkit-2.30/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Launcher/glib/BubblewrapLauncher.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.30/Source/WebKit/ChangeLog
r268913 r268914 1 2020-10-14 Sergio Villar Senin <svillar@igalia.com> 2 3 [GLIB] Fix linking error for systems not providing <sys/memfd.h> 4 https://bugs.webkit.org/show_bug.cgi?id=217514 5 6 Reviewed by Carlos Garcia Campos. 7 8 * UIProcess/Launcher/glib/BubblewrapLauncher.cpp: Unconditionally check for <sys/mman.h> which should always exist instead 9 of <sys/memfd.h>. Also define the fallback with syscall() only for linux systems (as it requires <linux/memfd.h>). 10 1 11 2020-10-15 Chris Lord <clord@igalia.com> 2 12 -
releases/WebKitGTK/webkit-2.30/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
r265326 r268914 41 41 #endif 42 42 43 #if __has_include(<sys/memfd.h>) 44 45 #include <sys/memfd.h> 46 47 #else 43 #include <sys/mman.h> 44 45 #ifndef MFD_ALLOW_SEALING 46 47 #if HAVE(LINUX_MEMFD_H) 48 49 #include <linux/memfd.h> 48 50 49 51 // These defines were added in glibc 2.27, the same release that added memfd_create. … … 60 62 #define F_SEAL_WRITE 0x0008 61 63 62 #define MFD_ALLOW_SEALING 2U63 64 64 static int memfd_create(const char* name, unsigned flags) 65 65 { 66 66 return syscall(__NR_memfd_create, name, flags); 67 67 } 68 #endif 68 #endif // #if HAVE(LINUX_MEMFD_H) 69 70 #endif // #ifndef MFD_ALLOW_SEALING 69 71 70 72 namespace WebKit {
Note:
See TracChangeset
for help on using the changeset viewer.