mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 04:48:55 +00:00
14 lines
325 B
Diff
14 lines
325 B
Diff
--- a/libportal/notification.c
|
|
+++ b/libportal/notification.c
|
|
@@ -26,6 +26,10 @@
|
|
|
|
#define _GNU_SOURCE
|
|
#include <sys/mman.h>
|
|
+#if defined __ANDROID__ && __ANDROID_API__ < 30
|
|
+#include <syscall.h>
|
|
+#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags)
|
|
+#endif
|
|
#include <fcntl.h>
|
|
|
|
#include <glib/gstdio.h>
|