summaryrefslogtreecommitdiff
path: root/libbacktrace/mmapio.c
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-12 13:06:53 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-12 13:06:53 +0000
commit99c6716432e11c9fba28dbdc76e078e4ca7c69b5 (patch)
tree4f46cc506c0483d9a2d5ca06332d6ff0980530b3 /libbacktrace/mmapio.c
parenta86c8768a1a4508177cc997322f8ba78a8730fc4 (diff)
downloadgcc-99c6716432e11c9fba28dbdc76e078e4ca7c69b5.tar.gz
* mmapio.c: Define MAP_FAILED if not defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/mmapio.c')
-rw-r--r--libbacktrace/mmapio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbacktrace/mmapio.c b/libbacktrace/mmapio.c
index ca8d75de60d..96cc93ab764 100644
--- a/libbacktrace/mmapio.c
+++ b/libbacktrace/mmapio.c
@@ -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. */