state->heaplimit = ((struct mdesc *)heap1)->heaplimit;
- state->s_heap = (char *)mmalloc_get_current_heap() - STD_HEAP_SIZE - getpagesize();
+ state->s_heap = (char *)mmalloc_get_current_heap() - STD_HEAP_SIZE - xbt_pagesize;
state->heapbase1 = (char *)heap1 + BLOCKSIZE;
state->heapbase2 = (char *)heap2 + BLOCKSIZE;
/* Heap information */
state->heaplimit = ((struct mdesc *)heap1)->heaplimit;
- state->s_heap = (char *)mmalloc_get_current_heap() - STD_HEAP_SIZE - getpagesize();
+ state->s_heap = (char *)mmalloc_get_current_heap() - STD_HEAP_SIZE - xbt_pagesize;
state->heapbase1 = (char *)heap1 + BLOCKSIZE;
state->heapbase2 = (char *)heap2 + BLOCKSIZE;