From 85d9bd0e056bf931ffdce0a992c7c5237baf47e3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 23 Nov 2009 22:08:01 +0000 Subject: [PATCH] 2009-11-23 Rainer Orth * dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing. --- gdb/ChangeLog | 4 ++++ gdb/dwarf2read.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1e575609e36..19826cf1f09 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-11-23 Rainer Orth + + * dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing. + 2009-11-23 Tom Tromey * dwarf2read.c (find_partial_die): Don't reassign to 'back_to'. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 630d9009700..906bbfc15fd 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -58,6 +58,9 @@ #endif #ifdef HAVE_MMAP #include +#ifndef MAP_FAILED +#define MAP_FAILED ((void *) -1) +#endif #endif #if 0 -- 2.30.2