From 6ea70839df63a5418e75214dd045e8a6804ddbf7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 30 Jun 2014 14:43:04 -0700 Subject: [PATCH] MAP_ANONYMOUS might be defined instead of MAP_ANON --- .../crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c index f8d8e8bf..cddf964f 100644 --- a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c +++ b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c @@ -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) {