Changeset 268472 in webkit
- Timestamp:
- Oct 14, 2020 10:44:54 AM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r268458 r268472 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-14 Kate Cheney <katherine_cheney@apple.com> 2 12 -
trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
r265753 r268472 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.