aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/malloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/malloc.c b/src/malloc.c
index 1a0913c..21de34f 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -51,6 +51,7 @@ static size_t get_pagesize(void)
static size_t pagesize = 0;
if (pagesize == 0)
{
+ /* TODO This should be done i crt0. */
long r = sysconf(_SC_PAGESIZE);
pagesize = (size_t)(r == -1 ? 4096 : r);
}