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:
9cbcea7
)
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:14:19 +0000
(22:14 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/5493)
crypto/mem_sec.c
patch
|
blob
|
history
diff --git
a/crypto/mem_sec.c
b/crypto/mem_sec.c
index 77bf165fbc555cbb85e155f56c2ccc709ad7d70a..ab4d137f633bdfa486b6290b51e0f2d7518ba970 100644
(file)
--- 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;