summaryrefslogtreecommitdiffstats
path: root/crypto/mem_sec.c
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 /crypto/mem_sec.c
parentec/curve448/f_generic.c: fix VC-WIN32 debug build failure. (diff)
downloadopenssl-014cc4b27a7f8ed0cf23a3c9d1fdbf44e41b7993.tar.xz
openssl-014cc4b27a7f8ed0cf23a3c9d1fdbf44e41b7993.zip
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)
Diffstat (limited to 'crypto/mem_sec.c')
-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;