add support for android x86, x86-64 in qbdi mode

This commit is contained in:
hac425
2019-11-09 15:18:24 +00:00
parent 574de9ff4c
commit ab8fb271f7
4 changed files with 29 additions and 11 deletions

2
include/android-ashmem.h Normal file → Executable file
View File

@ -52,7 +52,7 @@ static inline int shmctl(int __shmid, int __cmd, struct shmid_ds *__buf) {
if (__cmd == IPC_RMID) {
int length = ioctl(__shmid, ASHMEM_GET_SIZE, NULL);
struct ashmem_pin pin = {0, length};
struct ashmem_pin pin = {0, (unsigned int)length};
ret = ioctl(__shmid, ASHMEM_UNPIN, &pin);
close(__shmid);