1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Use MAP_CONCEAL on OpenBSD

This commit is contained in:
Frank Denis 2019-06-06 11:48:12 +02:00
parent d54f0721cd
commit d855d30826
3 changed files with 15 additions and 3 deletions

View File

@ -35,7 +35,11 @@
# define MAP_ANON MAP_ANONYMOUS
#endif
#ifndef MAP_NOCORE
# define MAP_NOCORE 0
# ifdef MAP_CONCEAL
# define MAP_NOCORE MAP_CONCEAL
# else
# define MAP_NOCORE 0
# endif
#endif
#ifndef MAP_POPULATE
# define MAP_POPULATE 0

View File

@ -31,7 +31,11 @@
# define MAP_ANON MAP_ANONYMOUS
#endif
#ifndef MAP_NOCORE
# define MAP_NOCORE 0
# ifdef MAP_CONCEAL
# define MAP_NOCORE MAP_CONCEAL
# else
# define MAP_NOCORE 0
# endif
#endif
#ifndef MAP_POPULATE
# define MAP_POPULATE 0

View File

@ -59,7 +59,11 @@ void *alloca (size_t);
#define GARBAGE_VALUE 0xdb
#ifndef MAP_NOCORE
# define MAP_NOCORE 0
# ifdef MAP_CONCEAL
# define MAP_NOCORE MAP_CONCEAL
# else
# define MAP_NOCORE 0
# endif
#endif
#if !defined(MAP_ANON) && defined(MAP_ANONYMOUS)
# define MAP_ANON MAP_ANONYMOUS