summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2018-03-02 16:50:11 +0100
committerAndy Polyakov <appro@openssl.org>2018-03-03 22:14:19 +0100
commit014cc4b27a7f8ed0cf23a3c9d1fdbf44e41b7993 (patch)
tree81bc4927799fdad1324b4c713b675381565ba974
parent9cbcea7e68f0e805109d7d253c31f02ba37b3b2b (diff)
mem_sec.c: portability fixup.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/5493)
-rw-r--r--crypto/mem_sec.c3
1 files changed, 3 insertions, 0 deletions
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;