aboutsummaryrefslogtreecommitdiff
path: root/src/utils/storage.cxx
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-10-29 15:37:18 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-12-05 18:48:51 +0200
commit4ae82c64d8f219666c2f8315a8a5ab9e30a1c1af (patch)
treec6b6cdec7660f287802ae1397e0dce087969a375 /src/utils/storage.cxx
parent088873fbc7f92c3d8d582f29eb44e39a136e944d (diff)
downloadopen-axiom-new-build.tar.gz
Diffstat (limited to 'src/utils/storage.cxx')
-rw-r--r--src/utils/storage.cxx12
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 --