From patchwork Sun Dec 9 17:45:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [committed] Defined MAP_FAILED in gcc.dg/20050826-1.c and gcc.dg/20050826-1.c if not defined Date: Sun, 09 Dec 2012 07:45:27 -0000 From: John David Anglin X-Patchwork-Id: 204755 Message-Id: <20121209174526.GA19911@hiauly1.hia.nrc.ca> To: gcc-patches@gcc.gnu.org This fixes gcc.dg/20030711-1.c and gcc.dg/20050826-1.c on HP-UX 10. Committed to trunk. Dave Index: gcc.dg/20030711-1.c =================================================================== --- gcc.dg/20030711-1.c (revision 194272) +++ gcc.dg/20030711-1.c (working copy) @@ -11,6 +11,9 @@ #ifndef MAP_ANON #define MAP_ANON 0 #endif +#ifndef MAP_FAILED +#define MAP_FAILED ((void *)-1) +#endif #include void __attribute__((noinline)) test (const char *p) Index: gcc.dg/20050826-1.c =================================================================== --- gcc.dg/20050826-1.c (revision 194272) +++ gcc.dg/20050826-1.c (working copy) @@ -12,6 +12,9 @@ #ifndef MAP_ANON #define MAP_ANON 0 #endif +#ifndef MAP_FAILED +#define MAP_FAILED ((void *)-1) +#endif #include struct Flags {