summaryrefslogtreecommitdiff
path: root/external/bsd/jemalloc/include
diff options
context:
space:
mode:
Diffstat (limited to 'external/bsd/jemalloc/include')
-rw-r--r--external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h b/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h
index bb8efca563f..6dc186720d6 100644
--- a/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h
+++ b/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h
@@ -200,7 +200,13 @@
/* One page is 2^LG_PAGE bytes. */
#include <machine/vmparam.h>
+#ifdef PAGE_SHIFT
#define LG_PAGE PAGE_SHIFT
+#elifdef MAX_PAGE_SHIFT
+#define LG_PAGE MAX_PAGE_SHIFT
+#else
+#error "PAGE_SHIFT is not defined"
+#endif
/*
* One huge page is 2^LG_HUGEPAGE bytes. Note that this is defined even if the