mmapio.c: Define MAP_FAILED if not defined.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Wed, 12 Dec 2012 13:06:53 +0000 (13:06 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 12 Dec 2012 13:06:53 +0000 (13:06 +0000)
* mmapio.c: Define MAP_FAILED if not defined.

From-SVN: r194443

libbacktrace/ChangeLog
libbacktrace/mmapio.c

index b2adcb1715f2f83106737159a8727a1b8dde2ace..9cc767b936b334c8cc87c1d0ca9d695bc57e4cfb 100644 (file)
@@ -1,3 +1,7 @@
+2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * mmapio.c: Define MAP_FAILED if not defined.
+
 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
 
        PR bootstrap/54926
index ca8d75de60d4a69b2620d40f1ce0b7e91f5dd0a6..96cc93ab76493f0e53c538ecc854774b1982c26a 100644 (file)
@@ -40,6 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.  */
 #include "backtrace.h"
 #include "internal.h"
 
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *)-1)
+#endif
+
 /* This file implements file views and memory allocation when mmap is
    available.  */