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:
b38fa98
)
mem_sec.c: portability fixup.
author
Andy Polyakov
<appro@openssl.org>
Sat, 10 Mar 2018 18:38:28 +0000
(19:38 +0100)
committer
Andy Polyakov
<appro@openssl.org>
Mon, 12 Mar 2018 10:03:17 +0000
(11:03 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/mem_sec.c
patch
|
blob
|
history
diff --git
a/crypto/mem_sec.c
b/crypto/mem_sec.c
index ab4d137f633bdfa486b6290b51e0f2d7518ba970..1c1327037acfc00bad0130792cf33ad64a8b1f34 100644
(file)
--- a/
crypto/mem_sec.c
+++ b/
crypto/mem_sec.c
@@
-33,8
+33,10
@@
# include <sys/mman.h>
# if defined(OPENSSL_SYS_LINUX)
# include <sys/syscall.h>
-# include <linux/mman.h>
-# include <errno.h>
+# if defined(SYS_mlock2)
+# include <linux/mman.h>
+# include <errno.h>
+# endif
# endif
# include <sys/param.h>
# include <sys/stat.h>