Commit e44c7d02 authored by Richard Levitte's avatar Richard Levitte
Browse files

Only implement secure malloc if _POSIX_VERSION allows

parent 4d3c278c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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>