diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-12 13:06:53 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-12 13:06:53 +0000 |
commit | 99c6716432e11c9fba28dbdc76e078e4ca7c69b5 (patch) | |
tree | 4f46cc506c0483d9a2d5ca06332d6ff0980530b3 | |
parent | a86c8768a1a4508177cc997322f8ba78a8730fc4 (diff) | |
download | gcc-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
-rw-r--r-- | libbacktrace/ChangeLog | 4 | ||||
-rw-r--r-- | libbacktrace/mmapio.c | 4 |
2 files changed, 8 insertions, 0 deletions
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 <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 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. */ |