0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-03 16:35:16 +00:00
Files
termux-packages/x11-packages/chromium-host-tools/cr-patches/1016-chromium-ozone-wayland-memfd.patch
2025-04-14 23:50:29 +08:00

15 lines
458 B
Diff

--- a/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc
+++ b/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc
@@ -22,6 +22,11 @@
#include "ui/ozone/platform/wayland/host/wayland_seat.h"
#include "ui/ozone/platform/wayland/host/wayland_window.h"
+#if defined __ANDROID__ && __ANDROID_API__ < 30
+#include <sys/syscall.h>
+#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags)
+#endif
+
namespace ui {
namespace {