mmap.c (MAP_FAILED): Define if not defined.

* mmap.c (MAP_FAILED): Define if not defined.

From-SVN: r233196
This commit is contained in:
John David Anglin 2016-02-06 22:27:34 +00:00
parent bc6218b608
commit 09b08e17f5
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2016-02-06 John David Anglin <danglin@gcc.gnu.org>
* mmap.c (MAP_FAILED): Define if not defined.
2016-01-04 Jakub Jelinek <jakub@redhat.com>
Update copyright years.

View File

@ -50,6 +50,10 @@ POSSIBILITY OF SUCH DAMAGE. */
#define MAP_ANONYMOUS MAP_ANON
#endif
#ifndef MAP_FAILED
#define MAP_FAILED ((void *)-1)
#endif
/* A list of free memory blocks. */
struct backtrace_freelist_struct