diff options
Diffstat (limited to 'graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp')
-rw-r--r-- | graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp b/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp index 2980795536e9..3892dfa36ad4 100644 --- a/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp +++ b/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp @@ -1,9 +1,9 @@ ---- src/client/qwaylandshmbackingstore.cpp.orig 2022-06-20 20:17:21 UTC +--- src/client/qwaylandshmbackingstore.cpp.orig 2022-12-21 21:06:50 UTC +++ src/client/qwaylandshmbackingstore.cpp -@@ -76,6 +76,8 @@ QWaylandShmBuffer::QWaylandShmBuffer(QWaylandDisplay * - - #ifdef SYS_memfd_create - fd = syscall(SYS_memfd_create, "wayland-shm", MFD_CLOEXEC); +@@ -82,6 +82,8 @@ QWaylandShmBuffer::QWaylandShmBuffer(QWaylandDisplay * + fd = syscall(SYS_memfd_create, "wayland-shm", MFD_CLOEXEC | MFD_ALLOW_SEALING); + if (fd >= 0) + fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); +#elif defined(__FreeBSD__) && __FreeBSD_version >= 1300048 + fd = memfd_create("wayland-shm", MFD_CLOEXEC); #endif |