summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/built_in.h b/built_in.h
index c3ff2b5..54444fa 100644
--- a/built_in.h
+++ b/built_in.h
@@ -178,7 +178,7 @@ typedef uint8_t u8;
# define bug() assert(0)
#endif
-#define RUNTIME_PAGE_SIZE (getpagesize())
+#define RUNTIME_PAGE_SIZE (sysconf(_SC_PAGE_SIZE))
#define PAGE_MASK (~(RUNTIME_PAGE_SIZE - 1))
#define PAGE_ALIGN(addr) (((addr) + RUNTIME_PAGE_SIZE - 1) & PAGE_MASK)