mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 13:17:39 +02:00
Separate libutils and libsystemproperties
This commit is contained in:
14
native/jni/systemproperties/include/hacks.h
Normal file
14
native/jni/systemproperties/include/hacks.h
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef PR_SET_VMA
|
||||
#define PR_SET_VMA 0x53564d41
|
||||
#endif
|
||||
#ifndef PR_SET_VMA_ANON_NAME
|
||||
#define PR_SET_VMA_ANON_NAME 0
|
||||
#endif
|
||||
#define getline __getline
|
||||
#define fsetxattr __fsetxattr
|
||||
extern "C" ssize_t __getline(char **, size_t *, FILE *);
|
||||
extern "C" int __fsetxattr(int, const char *, const void *, size_t, int);
|
Reference in New Issue
Block a user