diff options
author | Andy Polyakov <appro@openssl.org> | 2018-02-25 16:56:26 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-02-26 17:50:52 +0100 |
commit | 5839185cdd9b339ff741da437d964a25e72a3fb6 (patch) | |
tree | 81b8f6725d9e5c09b71298371d4e6014fa591c43 /crypto | |
parent | b9d1ad32039a8203e79845eafc8acd199c20a807 (diff) |
mem_sec.c: relax POSIX requirement.
Even though mlock(2) was standardized in POSIX.1-2001, vendors did
implement it prior that point.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5460)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/mem_sec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c index 4c01045495..77bf165fbc 100644 --- a/crypto/mem_sec.c +++ b/crypto/mem_sec.c @@ -22,7 +22,9 @@ /* e_os.h includes unistd.h, which defines _POSIX_VERSION */ #if !defined(OPENSSL_NO_SECURE_MEMORY) && defined(OPENSSL_SYS_UNIX) \ - && defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L + && ( (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) \ + || defined(__sun) || defined(__hpux) || defined(__sgi) \ + || defined(__osf__) ) # define IMPLEMENTED # include <stdlib.h> # include <assert.h> |