diff options
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> |