diff options
author | Tom Tromey <tromey@redhat.com> | 2009-11-23 22:08:01 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-11-23 22:08:01 +0000 |
commit | 85d9bd0e056bf931ffdce0a992c7c5237baf47e3 (patch) | |
tree | b91998fffbe78916370d5f7a59a523b32975e497 /gdb/dwarf2read.c | |
parent | 53d72f980c60f6dd31d5be3546c4b22b8b10c06f (diff) | |
download | gdb-85d9bd0e056bf931ffdce0a992c7c5237baf47e3.zip gdb-85d9bd0e056bf931ffdce0a992c7c5237baf47e3.tar.gz gdb-85d9bd0e056bf931ffdce0a992c7c5237baf47e3.tar.bz2 |
2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |