From 014cc4b27a7f8ed0cf23a3c9d1fdbf44e41b7993 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 2 Mar 2018 16:50:11 +0100 Subject: [PATCH] mem_sec.c: portability fixup. Reviewed-by: Rich Salz Reviewed-by: Ben Kaduk (Merged from https://github.com/openssl/openssl/pull/5493) --- crypto/mem_sec.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.25.1