libc: Patch mman.h so libgcov builds
This commit is contained in:
parent
43180b777e
commit
51bd7de17b
@ -13,6 +13,10 @@
|
|||||||
|
|
||||||
#define PAGE_SIZE 4096
|
#define PAGE_SIZE 4096
|
||||||
|
|
||||||
|
#define MAP_PRIVATE 0
|
||||||
|
#define MAP_SHARED 1
|
||||||
|
#define MAP_ANONYMOUS 2
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
@ -26,7 +30,7 @@ extern "C"
|
|||||||
* address space. */
|
* address space. */
|
||||||
int munmap(void* addr, size_t size);
|
int munmap(void* addr, size_t size);
|
||||||
|
|
||||||
/* Protects size bytes of memory according to the prot argument. */
|
/* Changes the permissions of size bytes of memory at addr according to the prot argument. */
|
||||||
int mprotect(void* addr, size_t size, int prot);
|
int mprotect(void* addr, size_t size, int prot);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user