summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/built_in.h b/built_in.h
index 8dd1824..c3ff2b5 100644
--- a/built_in.h
+++ b/built_in.h
@@ -178,11 +178,9 @@ typedef uint8_t u8;
# define bug() assert(0)
#endif
-#ifndef PAGE_SIZE
-# define PAGE_SIZE (getpagesize())
-#endif
-#define PAGE_MASK (~(PAGE_SIZE - 1))
-#define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & PAGE_MASK)
+#define RUNTIME_PAGE_SIZE (getpagesize())
+#define PAGE_MASK (~(RUNTIME_PAGE_SIZE - 1))
+#define PAGE_ALIGN(addr) (((addr) + RUNTIME_PAGE_SIZE - 1) & PAGE_MASK)
#if __BYTE_ORDER == __LITTLE_ENDIAN
static inline uint64_t htonll(uint64_t x)