1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
2001-03-26  Ben Collins  <bcollins@debian.org>

	* sysdeps/unix/sysv/linux/mips/bits/mman.h: Add MAP_* and MADV_*
	defines to match other architectures.
This commit is contained in:
Ulrich Drepper
2001-03-27 03:20:20 +00:00
parent 0a04075ed9
commit 93a4b7cac4
5 changed files with 30 additions and 6 deletions

View File

@ -28,7 +28,7 @@ main (void)
PROT_READ | PROT_WRITE | PROT_EXEC,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (stack == (void *)-1)
if (stack == MAP_FAILED)
{
perror ("mmap failed");
return 1;