/* -----------------------------------------------------------------------------
- * $Id: MBlock.c,v 1.26 2002/01/08 16:38:27 sof Exp $
+ * $Id: MBlock.c,v 1.28 2002/04/12 04:00:35 sof Exp $
*
* (c) The GHC Team 1998-1999
*
return getMBlocks(1);
}
-#ifndef _WIN32
+#if !defined(mingw32_TARGET_OS) && !defined(cygwin32_TARGET_OS)
void *
getMBlocks(nat n)
{
if (ret == (void *)-1) {
if (errno == ENOMEM) {
- barf("getMBlock: out of memory");
+ barf("getMBlock: out of memory (blocks requested: %d)", n);
} else {
barf("GetMBlock: mmap failed");
}
return ret;
}
-#else /* _WIN32 */
+#else /* defined(mingw32_TARGET_OS) || defined(cygwin32_TARGET_OS) */
/*
On Win32 platforms we make use of the two-phased virtual memory API