0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-05 09:21:20 +00:00
Files
termux-packages/x11-packages/chromium-host-tools/cr-patches/2001-weston-memfd_create.patch
2025-04-14 23:50:29 +08:00

15 lines
397 B
Diff

--- a/third_party/weston/src/shared/os-compatibility.c
+++ b/third_party/weston/src/shared/os-compatibility.c
@@ -38,6 +38,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
+
#define READONLY_SEALS (F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE)
int