diff options
author | Andy Polyakov <appro@openssl.org> | 2018-03-10 19:38:28 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-03-12 11:03:17 +0100 |
commit | f1c00b93e2138e5a45e8b500dec6bb3b2e035771 (patch) | |
tree | 2673421ec61192b952703c5e2b706e245bfa1c94 /crypto/mem_sec.c | |
parent | Fix propotype to include the const qualifier (diff) | |
download | openssl-f1c00b93e2138e5a45e8b500dec6bb3b2e035771.tar.xz openssl-f1c00b93e2138e5a45e8b500dec6bb3b2e035771.zip |
mem_sec.c: portability fixup.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/mem_sec.c')
-rw-r--r-- | crypto/mem_sec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c index ab4d137f63..1c1327037a 100644 --- 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> |