summaryrefslogtreecommitdiffstats
path: root/usr.bin/xinstall
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-24 05:39:19 +0000
committerpeter <peter@FreeBSD.org>1997-05-24 05:39:19 +0000
commit965d48d1490607564c190ff92ea176a7b1e4420a (patch)
treed1b0fea3801348dc35e53aaa41076829ff65ee93 /usr.bin/xinstall
parent9319ecd97b558987e794f03e5a34d5f115ef11c3 (diff)
downloadFreeBSD-src-965d48d1490607564c190ff92ea176a7b1e4420a.zip
FreeBSD-src-965d48d1490607564c190ff92ea176a7b1e4420a.tar.gz
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.
Diffstat (limited to 'usr.bin/xinstall')
-rw-r--r--usr.bin/xinstall/xinstall.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index 8c93e0b..d809f2c 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -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];
OpenPOWER on IntegriCloud