Merge pull request #109 from hac425xxx/qbdi_mode

Qbdi mode
This commit is contained in:
Andrea Fioraldi
2019-11-17 11:49:07 +01:00
committed by GitHub
7 changed files with 549 additions and 1 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);