Browse Source
* remove ndk_patches/sys-shm.h.patch add a note about libandroid-shmem and posix semaphores * libandroid-shmem: enable package * separate function to replace autoconf guess scriptsandroid-5
Vishal Biswas
8 years ago
committed by
Fredrik Fornwall
4 changed files with 13 additions and 24 deletions
@ -1,20 +0,0 @@ |
|||
--- /home/vishal/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm/usr/include/sys/shm.h 2016-10-12 15:11:58.000000000 +0530
|
|||
+++ ./usr/include/sys/shm.h 2017-01-24 08:21:49.997228838 +0530
|
|||
@@ -31,4 +31,17 @@
|
|||
|
|||
#include <linux/shm.h> |
|||
|
|||
+#ifdef TERMUX_SHMEM_STUBS
|
|||
+
|
|||
+#include <sys/syscall.h>
|
|||
+#include <limits.h>
|
|||
+
|
|||
+#define SHMLBA PAGE_SIZE
|
|||
+#define shmget(key, size, shmflg) syscall(__NR_shmget, key, size, shmflg)
|
|||
+#define shmctl(shmid, cmd, buf) syscall(__NR_shmctl, shmid, cmd, buf)
|
|||
+#define shmat(shmid, shmaddr, shmflg) syscall(__NR_shmat, shmid, shmaddr, shmflg)
|
|||
+#define shmdt(shmaddr) syscall(__NR_shmdt, shmaddr)
|
|||
+
|
|||
+#endif /* TERMUX_SHMEM_STUBS */
|
|||
+
|
|||
#endif /* _SYS_SHM_H_ */ |
Loading…
Reference in new issue