diff mbox

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

Message ID 20130103015025.GA8936@hiauly1.hia.nrc.ca
State New
Headers show

Commit Message

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

Dave
diff mbox

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