]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/xbt/mmalloc_test.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
stack-overflow tests are expected to fail on win32 too.
[simgrid.git] / teshsuite / xbt / mmalloc_test.c
index a09704de3e726a6431ecb65fc55aa6073e6c21ba..b9a074c648b5f72c8f913f0d3f8bd1dad367d1c5 100644 (file)
@@ -27,7 +27,7 @@ int main(int argc, char**argv)
   xbt_init(&argc,argv);
 
   XBT_INFO("Allocating a new heap");
-  unsigned long mask = ~((unsigned long)getpagesize() - 1);
+  unsigned long mask = ~((unsigned long)xbt_pagesize - 1);
   void *addr = (void*)(((unsigned long)sbrk(0) + BUFFSIZE) & mask);
   heapA = xbt_mheap_new(-1, addr);
   if (heapA == NULL) {