aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/dwarf2read.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1e57560..19826cf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing.
+
2009-11-23 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (find_partial_die): Don't reassign to 'back_to'.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 630d900..906bbfc 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -58,6 +58,9 @@
#endif
#ifdef HAVE_MMAP
#include <sys/mman.h>
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *) -1)
+#endif
#endif
#if 0