mmapio.c: Define MAP_FAILED if not defined.
* mmapio.c: Define MAP_FAILED if not defined. From-SVN: r194443
This commit is contained in:
parent
c3583c4ab0
commit
85619b6fc1
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue