mmapio.c: Define MAP_FAILED if not defined.

* mmapio.c: Define MAP_FAILED if not defined.

From-SVN: r194443
This commit is contained in:
John David Anglin 2012-12-12 13:06:53 +00:00 committed by John David Anglin
parent c3583c4ab0
commit 85619b6fc1
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* mmapio.c: Define MAP_FAILED if not defined.
2012-12-11 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/54926

View File

@ -40,6 +40,10 @@ POSSIBILITY OF SUCH DAMAGE. */
#include "backtrace.h"
#include "internal.h"
#ifndef MAP_FAILED
#define MAP_FAILED ((void *)-1)
#endif
/* This file implements file views and memory allocation when mmap is
available. */