X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f2df13795e01302813a6aef10825ec7e922ce530..7897fb8815dbff65907f646efb6f3ccf024e5481:/src/xbt/xbt_main.c diff --git a/src/xbt/xbt_main.c b/src/xbt/xbt_main.c index 30c1a8427a..3af5c0371d 100644 --- a/src/xbt/xbt_main.c +++ b/src/xbt/xbt_main.c @@ -85,9 +85,13 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, static void xbt_preinit(void) { unsigned int seed = 2147483647; - +#ifndef WIN32 xbt_pagesize = sysconf(_SC_PAGESIZE); - +#else + SYSTEM_INFO si; + GetSystemInfo(&si); + xbt_pagesize = si.dwPageSize; +#endif #ifdef MMALLOC_WANT_OVERRIDE_LEGACY mmalloc_preinit(); #endif