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
@ -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>
|
2012-12-11 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR bootstrap/54926
|
PR bootstrap/54926
|
||||||
|
@ -40,6 +40,10 @@ POSSIBILITY OF SUCH DAMAGE. */
|
|||||||
#include "backtrace.h"
|
#include "backtrace.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
#ifndef MAP_FAILED
|
||||||
|
#define MAP_FAILED ((void *)-1)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This file implements file views and memory allocation when mmap is
|
/* This file implements file views and memory allocation when mmap is
|
||||||
available. */
|
available. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user