aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mach/vm_param.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mach/vm_param.h b/include/mach/vm_param.h
index 4cbd0eca..8ddb5d99 100644
--- a/include/mach/vm_param.h
+++ b/include/mach/vm_param.h
@@ -59,9 +59,7 @@
* PAGE_SIZE and PAGE_MASK should also be variables
* so their values don't have to be constantly recomputed.)
*/
-#ifndef PAGE_SHIFT
-#error mach/machine/vm_param.h needs to define PAGE_SHIFT.
-#endif
+#ifdef PAGE_SHIFT
#ifndef PAGE_SIZE
#define PAGE_SIZE (1 << PAGE_SHIFT)
@@ -99,4 +97,6 @@
#define page_aligned(x) ((((vm_offset_t) (x)) & PAGE_MASK) == 0)
#define phys_aligned(x) ((((phys_addr_t) (x)) & PAGE_MASK) == 0)
+#endif /* PAGE_SHIFT */
+
#endif /* _MACH_VM_PARAM_H_ */