mirror of
https://github.com/gperftools/gperftools
synced 2025-02-27 09:30:25 +00:00
mmap_hook.cc: use MAP_ANON when MAP_ANONYMOUS is not defined
This commit is contained in:
parent
85048430ac
commit
e9a2d3c46f
@ -48,6 +48,9 @@
|
||||
#ifdef HAVE_MMAP
|
||||
# define mremap glibc_mremap
|
||||
# include <sys/mman.h>
|
||||
# ifndef MAP_ANONYMOUS
|
||||
# define MAP_ANONYMOUS MAP_ANON
|
||||
# endif
|
||||
#include <sys/types.h>
|
||||
# undef mremap
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user