backport: 20030711-1.c: Define MAP_FAILED if not defined.
Backport from mainline: 2012-12-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> * gcc.dg/20030711-1.c: Define MAP_FAILED if not defined. * gcc.dg/20050826-1.c: Likewise. From-SVN: r194695
This commit is contained in:
parent
338988881a
commit
908cbc316f
|
@ -1,3 +1,11 @@
|
|||
2012-12-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||
|
||||
Backport from mainline:
|
||||
2012-12-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||
|
||||
* gcc.dg/20030711-1.c: Define MAP_FAILED if not defined.
|
||||
* gcc.dg/20050826-1.c: Likewise.
|
||||
|
||||
2012-12-21 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
PR tree-optimization/55355
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
#ifndef MAP_ANON
|
||||
#define MAP_ANON 0
|
||||
#endif
|
||||
#ifndef MAP_FAILED
|
||||
#define MAP_FAILED ((void *)-1)
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
||||
void __attribute__((noinline)) test (const char *p)
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
#ifndef MAP_ANON
|
||||
#define MAP_ANON 0
|
||||
#endif
|
||||
#ifndef MAP_FAILED
|
||||
#define MAP_FAILED ((void *)-1)
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
||||
struct Flags {
|
||||
|
|
Loading…
Reference in New Issue