0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-07-30 21:50:50 +00:00
Files
termux-packages/x11-packages/carbonyl-host-tools/patches/2003-wayland-memfd_create.patch
2025-02-01 17:05:51 +08:00

15 lines
388 B
Diff

--- a/third_party/wayland/src/cursor/os-compatibility.c
+++ b/third_party/wayland/src/cursor/os-compatibility.c
@@ -42,6 +42,11 @@
#include "os-compatibility.h"
+#if defined(__ANDROID__) && __ANDROID_API__ < 26
+#include <sys/syscall.h>
+#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags)
+#endif
+
#ifndef HAVE_MKOSTEMP
static int
set_cloexec_or_close(int fd)