Skip to content
Snippets Groups Projects
Commit 85619b6f authored by John David Anglin's avatar John David Anglin Committed by John David Anglin
Browse files

mmapio.c: Define MAP_FAILED if not defined.

	* mmapio.c: Define MAP_FAILED if not defined.

From-SVN: r194443
parent c3583c4a
No related branches found
No related tags found
No related merge requests found
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. */ ...@@ -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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment