diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2022-10-29 15:37:18 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2022-12-05 18:48:51 +0200 |
commit | 4ae82c64d8f219666c2f8315a8a5ab9e30a1c1af (patch) | |
tree | c6b6cdec7660f287802ae1397e0dce087969a375 /src/utils/storage.cxx | |
parent | 088873fbc7f92c3d8d582f29eb44e39a136e944d (diff) | |
download | open-axiom-new-build.tar.gz |
WIPnew-build
Diffstat (limited to 'src/utils/storage.cxx')
-rw-r--r-- | src/utils/storage.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/storage.cxx b/src/utils/storage.cxx index 98b0a27f..a2eb2919 100644 --- a/src/utils/storage.cxx +++ b/src/utils/storage.cxx @@ -31,6 +31,10 @@ // --%: Gabriel Dos Reis. +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <open-axiom/storage> #include <open-axiom/FileMapping> #ifdef HAVE_SYS_TYPES_H @@ -56,6 +60,14 @@ #include <stdlib.h> #include <string.h> +#if HAVE_DECL_MAP_ANONYMOUS +# define OPENAXIOM_MM_ANONYMOUS_MAP_FLAG MAP_ANONYMOUS +#elif HAVE_DECL_MAP_ANON +# define OPENAXIOM_MM_ANONYMOUS_MAP_FLAG MAP_ANON +#else +# error MAP_ANONYMOUS or MAP_ANON must be defined +#endif + namespace OpenAxiom { // ---------------- // -- SystemError -- |