MAP_ANONYMOUS might be defined instead of MAP_ANON

This commit is contained in:
Frank Denis 2014-06-30 14:43:04 -07:00
parent 33a699cc0c
commit 6ea70839df

View File

@ -27,6 +27,10 @@
#include "crypto_scrypt.h"
#include "runtime.h"
#if !defined(MAP_ANON) && defined(MAP_ANONYMOUS)
# define MAP_ANON MAP_ANONYMOUS
#endif
void *
alloc_region(escrypt_region_t * region, size_t size)
{