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. */