Commit 1f375b9e authored by stolz's avatar stolz
Browse files

[project @ 2003-05-21 13:22:46 by stolz]

Call strerror() instead of sys_errlist[errno] (deprecated & smells bad)
(Broke Solaris-build here)
parent 2d88d376
/* -----------------------------------------------------------------------------
* $Id: MBlock.c,v 1.45 2003/05/14 09:11:06 simonmar Exp $
* $Id: MBlock.c,v 1.46 2003/05/21 13:22:46 stolz Exp $
*
* (c) The GHC Team 1998-1999
*
......@@ -133,7 +133,7 @@ my_mmap (void *addr, lnat size)
prog_belch("out of memory (requested %d bytes)", size);
stg_exit(EXIT_FAILURE);
} else {
barf("getMBlock: mmap: %s", sys_errlist[errno]);
barf("getMBlock: mmap: %s", strerror(errno));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment