Patchwork [committed] gcc.dg/pr55430.c: Define MAP_FAILED if not defined

login
register
mail settings
Submitter John David Anglin
Date Jan. 3, 2013, 1:50 a.m.
Message ID <20130103015025.GA8936@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/209167/
State New
Headers show

Comments

John David Anglin - Jan. 3, 2013, 1:50 a.m.
Tested on hppa1.1-hp-hpux10.20.

Dave

Patch

Index: gcc.dg/pr55430.c
===================================================================
--- gcc.dg/pr55430.c	(revision 194729)
+++ gcc.dg/pr55430.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 <stdlib.h>
 
 struct S