Codebase list openssl / 4974a6f
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) (cherry picked from commit 5839185cdd9b339ff741da437d964a25e72a3fb6) Andy Polyakov 6 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2525
2626 /* e_os.h includes unistd.h, which defines _POSIX_VERSION */
2727 #if !defined(OPENSSL_NO_SECURE_MEMORY) && defined(OPENSSL_SYS_UNIX) \
28 && defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
28 && ( (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) \
29 || defined(__sun) || defined(__hpux) || defined(__sgi) \
30 || defined(__osf__) )
2931 # define IMPLEMENTED
3032 # include <stdlib.h>
3133 # include <assert.h>