define MAP_ANON for systems with MAP_ANONYMOUS

switch the sense of this check
This commit is contained in:
Brent Cook 2014-07-30 22:16:01 -05:00
parent 8d89fb071c
commit 105da446ba

View File

@ -3,9 +3,9 @@
#ifndef LIBCRYPTOCOMPAT_MMAN_H
#define LIBCRYPTOCOMPAT_MMAN_H
#ifndef MAP_ANONYMOUS
#ifdef MAP_ANON
#define MAP_ANONYMOUS MAP_ANON
#ifndef MAP_ANON
#ifdef MAP_ANONYMOUS
#define MAP_ANON MAP_ANONYMOUS
#else
#error "System does not support mapping anonymous pages?"
#endif