mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
Only implement secure malloc if _POSIX_VERSION allows
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5060)
This commit is contained in:
parent
4d3c278c1a
commit
e44c7d02dd
@ -20,7 +20,9 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#if defined(OPENSSL_SYS_LINUX) || defined(OPENSSL_SYS_UNIX)
|
||||
/* e_os.h includes unistd.h, which defines _POSIX_VERSION */
|
||||
#if defined(OPENSSL_SYS_UNIX) \
|
||||
&& defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
|
||||
# define IMPLEMENTED
|
||||
# include <stdlib.h>
|
||||
# include <assert.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user