HP-UX 10 doesn't define MAP_FAILED. Patch fixes build. Tested on hppa1.1-hp-hpux10.20 and hppa2.0w-hp-hpux11.11.
OK for trunk? Dave -- J. David Anglin dave.ang...@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602) 2012-12-09 John David Anglin <dave.ang...@nrc-cnrc.gc.ca> * mmapio.c: Define MAP_FAILED if not defined. Index: mmapio.c =================================================================== --- mmapio.c (revision 194272) +++ mmapio.c (working copy) @@ -40,6 +40,10 @@ #include "backtrace.h" #include "internal.h" +#ifndef MAP_FAILED +#define MAP_FAILED ((void *)-1) +#endif + /* This file implements file views and memory allocation when mmap is available. */