projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a501ce
)
mem_sec.c: portability fixup.
author
Andy Polyakov
<appro@openssl.org>
Fri, 2 Mar 2018 15:50:11 +0000
(16:50 +0100)
committer
Andy Polyakov
<appro@openssl.org>
Sat, 3 Mar 2018 21:16:01 +0000
(22:16 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/5493)
(cherry picked from commit
014cc4b27a7f8ed0cf23a3c9d1fdbf44e41b7993
)
crypto/mem_sec.c
patch
|
blob
|
history
diff --git
a/crypto/mem_sec.c
b/crypto/mem_sec.c
index c36e392610d67d075ef1d6a2e4cd6045283d00e1..8955667272882eef6ff3435f5fca6101ebd41b41 100644
(file)
--- a/
crypto/mem_sec.c
+++ b/
crypto/mem_sec.c
@@
-44,6
+44,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;