From 99c6716432e11c9fba28dbdc76e078e4ca7c69b5 Mon Sep 17 00:00:00 2001 From: danglin Date: Wed, 12 Dec 2012 13:06:53 +0000 Subject: * 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 --- libbacktrace/ChangeLog | 4 ++++ libbacktrace/mmapio.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index b2adcb1715f..9cc767b936b 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2012-12-12 John David Anglin + + * mmapio.c: Define MAP_FAILED if not defined. + 2012-12-11 Jakub Jelinek PR bootstrap/54926 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. */ -- cgit v1.2.1