mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-24 00:41:11 -04:00
clean up includes and remove non-portable includes
This marginally increases the portability of hardened_malloc, eg. on OSX.
This commit is contained in:
parent
943704de7c
commit
b511696c55
14 changed files with 17 additions and 13 deletions
3
memory.c
3
memory.c
|
@ -1,7 +1,10 @@
|
|||
#include <errno.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
#ifdef LABEL_MEMORY
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
#ifndef PR_SET_VMA
|
||||
#define PR_SET_VMA 0x53564d41
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue