From 85d9bd0e056bf931ffdce0a992c7c5237baf47e3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 23 Nov 2009 22:08:01 +0000 Subject: 2009-11-23 Rainer Orth * dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing. --- gdb/dwarf2read.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/dwarf2read.c') 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 +#ifndef MAP_FAILED +#define MAP_FAILED ((void *) -1) +#endif #endif #if 0 -- cgit v1.1