2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
authorTom Tromey <tromey@redhat.com>
Mon, 23 Nov 2009 22:08:01 +0000 (22:08 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 23 Nov 2009 22:08:01 +0000 (22:08 +0000)
* dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing.

gdb/ChangeLog
gdb/dwarf2read.c

index 1e575609e36f79f1c0bcbd24978e89460471a8f9..19826cf1f09cffd0c3ea30e0e07cf5ab7e34db40 100644 (file)
@@ -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'.
index 630d9009700d0c668a1535214cb71122a2e938b0..906bbfc15fd0553fea3577d62d6ea41036ef76cf 100644 (file)
@@ -58,6 +58,9 @@
 #endif
 #ifdef HAVE_MMAP
 #include <sys/mman.h>
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *) -1)
+#endif
 #endif
 
 #if 0