mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-23 01:42:48 +00:00
* Build waypipe with C language for now. Rust waypipe needs testing. * Rebase patches after C source files were moved in waypipe-c dir.a605a8ddb2
* Remove src-secctx.c.patch file which was added in upstream.eccbb5cbf1
14 lines
403 B
Diff
14 lines
403 B
Diff
--- a/waypipe-c/platform.c
|
|
+++ b/waypipe-c/platform.c
|
|
@@ -50,6 +50,10 @@
|
|
#if defined(__linux__)
|
|
/* memfd_create was introduced in glibc 2.27 */
|
|
#if !defined(__GLIBC__) || (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 27)
|
|
+#if defined __ANDROID__ && __ANDROID_API__ < 30
|
|
+#include <syscall.h>
|
|
+#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags)
|
|
+#endif
|
|
#define HAS_MEMFD 1
|
|
#endif
|
|
#endif
|