Bootstrap aid from older releases.. 'make world' can't build xinstall

until the includes are installed, and it doesn't install the includes until
xinstall is built (the previous xinstall binary may not have -C).  As a
bandaid, define MAP_FAILED ourselves if <sys/mman.h> didn't.  Perhaps it
would be safer to simply disable mmap if all the prerequisites are not
there.
This commit is contained in:
Peter Wemm 1997-05-24 05:39:19 +00:00
parent 068eabc6c4
commit 503397df4f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26083

View File

@ -40,7 +40,7 @@ static const char copyright[] =
#ifndef lint
/*static char sccsid[] = "From: @(#)xinstall.c 8.1 (Berkeley) 7/21/93";*/
static const char rcsid[] =
"$Id: xinstall.c,v 1.21 1997/02/22 19:57:55 peter Exp $";
"$Id: xinstall.c,v 1.22 1997/03/29 04:34:07 imp Exp $";
#endif /* not lint */
/*-
@ -80,6 +80,11 @@ static const char rcsid[] =
#include "pathnames.h"
/* Bootstrap aid - this doesn't exist in most older releases */
#ifndef MAP_FAILED
#define MAP_FAILED ((caddr_t)-1) /* from <sys/mman.h> */
#endif
int debug, docompare, docopy, dodir, dopreserve, dostrip, verbose;
int mode = S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH;
char *group, *owner, pathbuf[MAXPATHLEN];