mmap_hook.cc: use MAP_ANON when MAP_ANONYMOUS is not defined

This commit is contained in:
barracuda156 2023-12-16 09:53:35 +08:00
parent 85048430ac
commit e9a2d3c46f

View File

@ -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