mem_sec.c: portability fixup.
authorAndy Polyakov <appro@openssl.org>
Sat, 10 Mar 2018 18:38:28 +0000 (19:38 +0100)
committerAndy Polyakov <appro@openssl.org>
Mon, 12 Mar 2018 10:03:17 +0000 (11:03 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/mem_sec.c

index ab4d137f633bdfa486b6290b51e0f2d7518ba970..1c1327037acfc00bad0130792cf33ad64a8b1f34 100644 (file)
 # 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>