aboutsummaryrefslogtreecommitdiff
path: root/src/utils/storage.cxx
diff options
context:
space:
mode:
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 --