Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
webkit2gtk3.28761
webkitgtk-memfd-build-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File webkitgtk-memfd-build-fix.patch of Package webkit2gtk3.28761
diff -urp webkitgtk-2.38.2.orig/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp webkitgtk-2.38.2/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp --- webkitgtk-2.38.2.orig/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp 2022-10-19 03:11:34.542284500 -0500 +++ webkitgtk-2.38.2/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp 2022-11-07 14:56:20.911361809 -0600 @@ -32,22 +32,22 @@ #include <wtf/glib/GRefPtr.h> #include <wtf/glib/GUniquePtr.h> -#if !defined(MFD_ALLOW_SEALING) && HAVE(LINUX_MEMFD_H) -#include <linux/memfd.h> -#endif - #include "Syscalls.h" #if PLATFORM(GTK) #include "WaylandCompositor.h" #endif -#if !defined(MFD_ALLOW_SEALING) && HAVE(LINUX_MEMFD_H) - +#if !defined(MFD_ALLOW_SEALING) // These defines were added in glibc 2.27, the same release that added memfd_create. // But the kernel added all of this in Linux 3.17. So it's totally safe for us to // depend on, as long as we define it all ourselves. Remove this once we depend on // glibc 2.27. +// +// P.S. linux/memfd.h defines MFD_ALLOW_SEALING, so must not be included prior +// to this point. + +#include <linux/memfd.h> #define F_ADD_SEALS 1033 #define F_GET_SEALS 1034 @@ -61,7 +61,7 @@ static int memfd_create(const char* name { return syscall(__NR_memfd_create, name, flags); } -#endif // #if !defined(MFD_ALLOW_SEALING) && HAVE(LINUX_MEMFD_H) +#endif // #if !defined(MFD_ALLOW_SEALING) #if PLATFORM(GTK) #define BASE_DIRECTORY "webkitgtk"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor