mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-18 11:40:54 +08:00
20030711-1.c: Define MAP_FAILED if not defined.
* gcc.dg/20030711-1.c: Define MAP_FAILED if not defined. * gcc.dg/20050826-1.c: Likewise. From-SVN: r194333
This commit is contained in:
parent
c5c1aeb2f2
commit
e4139a8dd1
@ -1,3 +1,8 @@
|
||||
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-09 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gnat.dg/vect9.adb: Add -w to dg-options.
|
||||
|
@ -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…
x
Reference in New Issue
Block a user