From: Andy Polyakov Date: Fri, 2 Mar 2018 15:50:11 +0000 (+0100) Subject: mem_sec.c: portability fixup. X-Git-Tag: OpenSSL_1_1_1-pre3~195 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=014cc4b27a7f8ed0cf23a3c9d1fdbf44e41b7993;p=oweals%2Fopenssl.git mem_sec.c: portability fixup. Reviewed-by: Rich Salz Reviewed-by: Ben Kaduk (Merged from https://github.com/openssl/openssl/pull/5493) --- diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c index 77bf165fbc..ab4d137f63 100644 --- a/crypto/mem_sec.c +++ b/crypto/mem_sec.c @@ -45,6 +45,9 @@ #ifndef PAGE_SIZE # define PAGE_SIZE 4096 #endif +#if !defined(MAP_ANON) && defined(MAP_ANONYMOUS) +# define MAP_ANON MAP_ANONYMOUS +#endif #ifdef IMPLEMENTED static size_t secure_mem_used;