This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] gcc.dg/pr55430.c: Define MAP_FAILED if not defined
- From: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Jan 2013 20:50:26 -0500
- Subject: [committed] gcc.dg/pr55430.c: Define MAP_FAILED if not defined
- Reply-to: John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>
Tested on hppa1.1-hp-hpux10.20.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* gcc.dg/pr55430.c: Define MAP_FAILED if not defined.
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