0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-05 08:11:16 +00:00
Files
2025-05-12 15:06:25 +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)